diff options
author | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-03-02 11:37:58 -0600 |
---|---|---|
committer | Nathaniel Guse <nathaniel.guse@gmail.com> | 2013-03-02 11:37:58 -0600 |
commit | 8415ae839cf699e043fe24ad91585dc419596ff8 (patch) | |
tree | 9580efa06b52b15f64481af587cb723897263eff /tests/dbal | |
parent | 39ca212e17e80d14dbbd20cf5542ab37f27bd217 (diff) | |
download | forums-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/dbal')
-rw-r--r-- | tests/dbal/migrator_test.php | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php index 9460e76f37..6fc08d51f8 100644 --- a/tests/dbal/migrator_test.php +++ b/tests/dbal/migrator_test.php @@ -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() |