mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-02 04:24:56 +02:00
[ticket/15824] Make UI test framework correctly install exts
PHPBB3-15824
This commit is contained in:
parent
4a2b12a0c8
commit
b487a3d9ef
@ -192,6 +192,13 @@ class phpbb_ui_test_case extends phpbb_test_case
|
||||
}
|
||||
}
|
||||
|
||||
$install_config_file = $phpbb_root_path . 'store/install_config.php';
|
||||
|
||||
if (file_exists($install_config_file))
|
||||
{
|
||||
unlink($install_config_file);
|
||||
}
|
||||
|
||||
$container_builder = new \phpbb\di\container_builder($phpbb_root_path, $phpEx);
|
||||
$container = $container_builder
|
||||
->with_environment('installer')
|
||||
@ -205,11 +212,14 @@ class phpbb_ui_test_case extends phpbb_test_case
|
||||
],
|
||||
'cache.driver.class' => 'phpbb\cache\driver\file'
|
||||
])
|
||||
->with_config(new \phpbb\config_php_file($phpbb_root_path, $phpEx))
|
||||
->without_compiled_container()
|
||||
->get_container();
|
||||
|
||||
$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