1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 20:24:08 +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

@@ -44,7 +44,26 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
$tools = array(
new phpbb_db_migration_tool_config($this->config),
);
$this->migrator = new phpbb_db_migrator($this->config, $this->db, $this->db_tools, 'phpbb_migrations', dirname(__FILE__) . '/../../phpBB/', 'php', 'phpbb_', $tools);
$this->extension_manager = new phpbb_extension_manager(
new phpbb_mock_container_builder(),
$this->db,
$this->config,
'phpbb_ext',
dirname(__FILE__) . '/../../phpBB/',
'.php',
null
);
$this->migrator = new phpbb_db_migrator(
$this->config,
$this->db,
$this->db_tools,
$this->extension_manager,
'phpbb_migrations',
dirname(__FILE__) . '/../../phpBB/',
'php',
'phpbb_', $tools
);
}
public function test_update()