mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/migrations] Fix failing tests
PHPBB3-11318
This commit is contained in:
parent
b398fa2050
commit
3a68bba2fb
1 changed files with 12 additions and 4 deletions
|
@ -25,14 +25,22 @@ class phpbb_extension_manager_test extends phpbb_database_test_case
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
$config = new phpbb_config(array());
|
||||||
|
$db = $this->new_dbal();
|
||||||
|
$db_tools = new phpbb_db_tools($db);
|
||||||
|
$phpbb_root_path = __DIR__ . './../../phpBB/';
|
||||||
|
$php_ext = 'php';
|
||||||
|
$table_prefix = 'phpbb_';
|
||||||
|
|
||||||
$this->extension_manager = new phpbb_extension_manager(
|
$this->extension_manager = new phpbb_extension_manager(
|
||||||
new phpbb_mock_container_builder(),
|
new phpbb_mock_container_builder(),
|
||||||
$this->new_dbal(),
|
$db,
|
||||||
new phpbb_config(array()),
|
$config,
|
||||||
|
new phpbb_db_migrator($config, $db, $db_tools, 'phpbb_migrations', $phpbb_root_path, $php_ext, $table_prefix, array()),
|
||||||
'phpbb_ext',
|
'phpbb_ext',
|
||||||
dirname(__FILE__) . '/',
|
dirname(__FILE__) . '/',
|
||||||
'.php',
|
'.' . $php_ext,
|
||||||
new phpbb_mock_cache
|
new phpbb_mock_cache()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue