aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal/migrator_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-20 23:32:36 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-20 23:32:36 +0100
commitb566686b5161e699f8376b0463960a9ffb3812b6 (patch)
tree9392b221794a7bac17102b20f64f33fa009c31c2 /tests/dbal/migrator_test.php
parentc71e8ffb29e0b3774395b9fbfa3b3faff0095413 (diff)
parenta5fae1b1f09358f8a24ff32fc5192395cd314244 (diff)
downloadforums-b566686b5161e699f8376b0463960a9ffb3812b6.tar
forums-b566686b5161e699f8376b0463960a9ffb3812b6.tar.gz
forums-b566686b5161e699f8376b0463960a9ffb3812b6.tar.bz2
forums-b566686b5161e699f8376b0463960a9ffb3812b6.tar.xz
forums-b566686b5161e699f8376b0463960a9ffb3812b6.zip
Merge branch 'develop-ascraeus' into develop
Conflicts: phpBB/phpbb/db/migration/data/v30x/release_3_0_5_rc1.php phpBB/phpbb/db/migration/profilefield_base_migration.php phpBB/phpbb/db/migrator.php
Diffstat (limited to 'tests/dbal/migrator_test.php')
-rw-r--r--tests/dbal/migrator_test.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php
index e4fb442818..9b8383fc88 100644
--- a/tests/dbal/migrator_test.php
+++ b/tests/dbal/migrator_test.php
@@ -46,7 +46,10 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
new \phpbb\db\migration\tool\config($this->config),
);
+ $container = new phpbb_mock_container_builder();
+
$this->migrator = new \phpbb\db\migrator(
+ $container,
$this->config,
$this->db,
$this->db_tools,
@@ -57,9 +60,8 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case
$tools,
new \phpbb\db\migration\helper()
);
-
- $container = new phpbb_mock_container_builder();
- $container->set('migrator', $migrator);
+ $container->set('migrator', $this->migrator);
+ $container->set('dispatcher', new phpbb_mock_event_dispatcher());
$user = new \phpbb\user('\phpbb\datetime');
$this->extension_manager = new \phpbb\extension\manager(