aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dbal')
-rw-r--r--tests/dbal/migrator_test.php21
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()