mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-20 07:42:09 +02:00
[ticket/14492] Set install extensions to synthetic and fix step count
PHPBB3-14492
This commit is contained in:
parent
89fef2ce13
commit
eb1ade6768
@ -97,11 +97,6 @@ class install_extensions extends \phpbb\install\task_base
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
if (defined('PHPBB_ENVIRONMENT') && PHPBB_ENVIRONMENT === 'test')
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$this->user->session_begin();
|
||||
$this->user->setup(array('common', 'acp/common', 'cli'));
|
||||
|
||||
@ -134,7 +129,7 @@ class install_extensions extends \phpbb\install\task_base
|
||||
*/
|
||||
static public function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -157,7 +157,7 @@ class enable_extensions extends task_base
|
||||
*/
|
||||
static public function get_step_count()
|
||||
{
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -309,6 +309,8 @@ class phpbb_functional_test_case extends phpbb_test_case
|
||||
|
||||
$container->register('installer.install_finish.notify_user')->setSynthetic(true);
|
||||
$container->set('installer.install_finish.notify_user', new phpbb_mock_null_installer_task());
|
||||
$container->register('installer.install_finish.install_extensions')->setSynthetic(true);
|
||||
$container->set('installer.install_finish.install_extensions', new phpbb_mock_null_installer_task());
|
||||
$container->compile();
|
||||
|
||||
$language = $container->get('language');
|
||||
|
Loading…
x
Reference in New Issue
Block a user