1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

[ticket/11386] Update tests with new constructors for ext.manager/migrator

PHPBB3-11386
This commit is contained in:
Nathaniel Guse
2013-03-02 11:37:58 -06:00
parent 39ca212e17
commit 8415ae839c
4 changed files with 50 additions and 6 deletions

View File

@@ -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()