diff options
author | MateBartus <mate.bartus@gmail.com> | 2015-05-31 13:22:03 +0200 |
---|---|---|
committer | MateBartus <mate.bartus@gmail.com> | 2015-05-31 13:22:46 +0200 |
commit | fcff3ee4ad2a273081ed3061a550399dfaa9c11e (patch) | |
tree | 4b379d17283b6bd6395e89cae58d0b8d957ef7c4 /tests/functional/extension_module_test.php | |
parent | 77ee0e62ca1685e4577947cc60163367dfa97de6 (diff) | |
download | forums-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/functional/extension_module_test.php')
-rw-r--r-- | tests/functional/extension_module_test.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/functional/extension_module_test.php b/tests/functional/extension_module_test.php index ee084720e4..95107665cd 100644 --- a/tests/functional/extension_module_test.php +++ b/tests/functional/extension_module_test.php @@ -49,8 +49,9 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case $this->phpbb_extension_manager = $this->get_extension_manager(); $this->phpbb_extension_manager->enable('foo/bar'); - $modules = new acp_modules(); $db = $this->get_db(); + $cache = $this->get_cache_driver(); + $modules = new \phpbb\module\module_manager($cache, $db, $this->phpbb_extension_manager, MODULES_TABLE, dirname(__FILE__) . '/../../phpBB/', 'php'); $sql = 'SELECT module_id FROM ' . MODULES_TABLE . " @@ -70,7 +71,7 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case 'module_mode' => '', 'module_auth' => '', ); - $modules->update_module_data($parent_data, true); + $modules->update_module_data($parent_data); $module_data = array( 'module_basename' => 'foo\\bar\\acp\\main_module', @@ -82,7 +83,7 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case 'module_mode' => 'mode', 'module_auth' => '', ); - $modules->update_module_data($module_data, true); + $modules->update_module_data($module_data); $parent_data = array( 'module_basename' => '', @@ -94,7 +95,7 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case 'module_mode' => '', 'module_auth' => '', ); - $modules->update_module_data($parent_data, true); + $modules->update_module_data($parent_data); $module_data = array( 'module_basename' => 'foo\\bar\\ucp\\main_module', @@ -106,7 +107,7 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case 'module_mode' => 'mode', 'module_auth' => '', ); - $modules->update_module_data($module_data, true); + $modules->update_module_data($module_data); $this->purge_cache(); } |