aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_functional_test_case.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-02-26 15:32:27 -0600
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-02-26 15:32:27 -0600
commita01da0c1ee83d15e4c466a80db78fd7e9859e637 (patch)
tree651cd313ae0d225d67fb0a4f1755d7f87b2546b7 /tests/test_framework/phpbb_functional_test_case.php
parentd2295b3d1f191710916b12980e13c97419ecf0ae (diff)
parent80bd78a5e5e1069773c05073cd47662a311bda79 (diff)
downloadforums-a01da0c1ee83d15e4c466a80db78fd7e9859e637.tar
forums-a01da0c1ee83d15e4c466a80db78fd7e9859e637.tar.gz
forums-a01da0c1ee83d15e4c466a80db78fd7e9859e637.tar.bz2
forums-a01da0c1ee83d15e4c466a80db78fd7e9859e637.tar.xz
forums-a01da0c1ee83d15e4c466a80db78fd7e9859e637.zip
Merge branch 'develop' of git://github.com/phpbb/phpbb3 into ticket/11103
Conflicts: phpBB/install/database_update.php
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php27
1 files changed, 14 insertions, 13 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index e346223a4b..b570b464e6 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -134,19 +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(
- $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()