aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_functional_test_case.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-02-13 21:12:50 -0600
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-02-13 21:41:52 -0600
commit193a3beb8f75e17b09a0e66d2815bc2bf8d4dce4 (patch)
tree4903a30888d4a33a6b38dbfa818d8aa0a8647333 /tests/test_framework/phpbb_functional_test_case.php
parent3a68bba2fbfe8416884ac5230876cc73c3ba30bd (diff)
downloadforums-193a3beb8f75e17b09a0e66d2815bc2bf8d4dce4.tar
forums-193a3beb8f75e17b09a0e66d2815bc2bf8d4dce4.tar.gz
forums-193a3beb8f75e17b09a0e66d2815bc2bf8d4dce4.tar.bz2
forums-193a3beb8f75e17b09a0e66d2815bc2bf8d4dce4.tar.xz
forums-193a3beb8f75e17b09a0e66d2815bc2bf8d4dce4.zip
[feature/migrations] Fix failing tests (again)
PHPBB3-11318
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index cb0a475278..b570b464e6 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -134,20 +134,20 @@ class phpbb_functional_test_case extends phpbb_test_case
{
global $phpbb_root_path, $phpEx;
- if (!$this->extension_manager)
- {
- $this->extension_manager = new phpbb_extension_manager(
- new phpbb_mock_container_builder(),
- $this->get_db(),
- new phpbb_config(array()),
- self::$config['table_prefix'] . 'ext',
- $phpbb_root_path,
- ".$phpEx",
- $this->get_cache_driver()
- );
- }
-
- return $this->extension_manager;
+ $config = new phpbb_config(array());
+ $db = $this->get_db();
+ $db_tools = new phpbb_db_tools($db);
+
+ return new phpbb_extension_manager(
+ new phpbb_mock_container_builder(),
+ $db,
+ $config,
+ new phpbb_db_migrator($config, $db, $db_tools, self::$config['table_prefix'] . 'migrations', $phpbb_root_path, $php_ext, self::$config['table_prefix'], array()),
+ self::$config['table_prefix'] . 'ext',
+ dirname(__FILE__) . '/',
+ '.' . $php_ext,
+ $this->get_cache_driver()
+ );
}
static protected function install_board()