1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[feature/migrations] Fix failing tests (again)

PHPBB3-11318
This commit is contained in:
Nathaniel Guse
2013-02-13 21:12:50 -06:00
parent 3a68bba2fb
commit 193a3beb8f
3 changed files with 39 additions and 38 deletions

View File

@@ -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()
);
}
$config = new phpbb_config(array());
$db = $this->get_db();
$db_tools = new phpbb_db_tools($db);
return $this->extension_manager;
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()