aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal
diff options
context:
space:
mode:
authorMateBartus <mate.bartus@gmail.com>2015-05-31 13:22:03 +0200
committerMateBartus <mate.bartus@gmail.com>2015-05-31 13:22:46 +0200
commitfcff3ee4ad2a273081ed3061a550399dfaa9c11e (patch)
tree4b379d17283b6bd6395e89cae58d0b8d957ef7c4 /tests/dbal
parent77ee0e62ca1685e4577947cc60163367dfa97de6 (diff)
downloadforums-fcff3ee4ad2a273081ed3061a550399dfaa9c11e.tar
forums-fcff3ee4ad2a273081ed3061a550399dfaa9c11e.tar.gz
forums-fcff3ee4ad2a273081ed3061a550399dfaa9c11e.tar.bz2
forums-fcff3ee4ad2a273081ed3061a550399dfaa9c11e.tar.xz
forums-fcff3ee4ad2a273081ed3061a550399dfaa9c11e.zip
[ticket/13777] Fix tests
PHPBB3-13777
Diffstat (limited to 'tests/dbal')
-rw-r--r--tests/dbal/migrator_tool_module_test.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/dbal/migrator_tool_module_test.php b/tests/dbal/migrator_tool_module_test.php
index 695a7e7a7f..a71334f23f 100644
--- a/tests/dbal/migrator_tool_module_test.php
+++ b/tests/dbal/migrator_tool_module_test.php
@@ -41,7 +41,10 @@ class phpbb_dbal_migrator_tool_module_test extends phpbb_database_test_case
$auth = $this->getMock('\phpbb\auth\auth');
$phpbb_log = new \phpbb\log\log($db, $user, $auth, $phpbb_dispatcher, $phpbb_root_path, 'adm/', $phpEx, LOG_TABLE);
- $this->tool = new \phpbb\db\migration\tool\module($this->db, $this->cache, $this->user, $phpbb_root_path, $phpEx, 'phpbb_modules');
+ $phpbb_extension_manager = new phpbb_mock_extension_manager($phpbb_root_path);
+ $module_manager = new \phpbb\module\module_manager($cache, $this->db, $phpbb_extension_manager, MODULES_TABLE, $phpbb_root_path, $phpEx);
+
+ $this->tool = new \phpbb\db\migration\tool\module($this->db, $this->cache, $this->user, $module_manager, $phpbb_root_path, $phpEx, 'phpbb_modules');
}
public function exists_data()