aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2018-10-01 17:29:13 -0700
committerMatt Friedman <maf675@gmail.com>2018-10-01 17:29:13 -0700
commitb487a3d9efbefc97aa7562ffbd4fa23577d7a8e8 (patch)
tree4c9d95331cfb1d3f14fce0aeea42bc9c3694286d /tests/test_framework
parent4a2b12a0c8d7fc3761dde815ca3cfd5685c6a8c6 (diff)
downloadforums-b487a3d9efbefc97aa7562ffbd4fa23577d7a8e8.tar
forums-b487a3d9efbefc97aa7562ffbd4fa23577d7a8e8.tar.gz
forums-b487a3d9efbefc97aa7562ffbd4fa23577d7a8e8.tar.bz2
forums-b487a3d9efbefc97aa7562ffbd4fa23577d7a8e8.tar.xz
forums-b487a3d9efbefc97aa7562ffbd4fa23577d7a8e8.zip
[ticket/15824] Make UI test framework correctly install exts
PHPBB3-15824
Diffstat (limited to 'tests/test_framework')
-rw-r--r--tests/test_framework/phpbb_ui_test_case.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_framework/phpbb_ui_test_case.php b/tests/test_framework/phpbb_ui_test_case.php
index 72d15ae0b0..d16ac78c4b 100644
--- a/tests/test_framework/phpbb_ui_test_case.php
+++ b/tests/test_framework/phpbb_ui_test_case.php
@@ -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');