aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework/phpbb_functional_test_case.php
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-03-02 11:37:58 -0600
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-03-02 11:37:58 -0600
commit8415ae839cf699e043fe24ad91585dc419596ff8 (patch)
tree9580efa06b52b15f64481af587cb723897263eff /tests/test_framework/phpbb_functional_test_case.php
parent39ca212e17e80d14dbbd20cf5542ab37f27bd217 (diff)
downloadforums-8415ae839cf699e043fe24ad91585dc419596ff8.tar
forums-8415ae839cf699e043fe24ad91585dc419596ff8.tar.gz
forums-8415ae839cf699e043fe24ad91585dc419596ff8.tar.bz2
forums-8415ae839cf699e043fe24ad91585dc419596ff8.tar.xz
forums-8415ae839cf699e043fe24ad91585dc419596ff8.zip
[ticket/11386] Update tests with new constructors for ext.manager/migrator
PHPBB3-11386
Diffstat (limited to 'tests/test_framework/phpbb_functional_test_case.php')
-rw-r--r--tests/test_framework/phpbb_functional_test_case.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php
index b570b464e6..ff358033b1 100644
--- a/tests/test_framework/phpbb_functional_test_case.php
+++ b/tests/test_framework/phpbb_functional_test_case.php
@@ -138,16 +138,29 @@ class phpbb_functional_test_case extends phpbb_test_case
$db = $this->get_db();
$db_tools = new phpbb_db_tools($db);
- return new phpbb_extension_manager(
+ $extension_manager = 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()
);
+ $migrator = new phpbb_db_migrator(
+ $config,
+ $db,
+ $db_tools,
+ $manager,
+ self::$config['table_prefix'] . 'migrations',
+ $phpbb_root_path,
+ $php_ext,
+ self::$config['table_prefix'],
+ array()
+ );
+ $extension_manager->set_migrator($migrator);
+
+ return $extension_manager;
}
static protected function install_board()