aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension
diff options
context:
space:
mode:
authorK Fisher <kevanfisher@hotmail.com>2014-04-03 16:17:10 -0400
committerK Fisher <kevanfisher@hotmail.com>2014-04-03 16:17:10 -0400
commita5216e1b0483bc5db96f10d3b3504d1fe5ab850d (patch)
treec9700a6df91c4ec326163a3b492ffdbc545f20cd /tests/extension
parentd88929210acde66ce37e9b29edbf467abe8779df (diff)
downloadforums-a5216e1b0483bc5db96f10d3b3504d1fe5ab850d.tar
forums-a5216e1b0483bc5db96f10d3b3504d1fe5ab850d.tar.gz
forums-a5216e1b0483bc5db96f10d3b3504d1fe5ab850d.tar.bz2
forums-a5216e1b0483bc5db96f10d3b3504d1fe5ab850d.tar.xz
forums-a5216e1b0483bc5db96f10d3b3504d1fe5ab850d.zip
[ticket/12350] Instantiate Mock Dispatcher for modules_test
PHPBB3-12350
Diffstat (limited to 'tests/extension')
-rw-r--r--tests/extension/modules_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/extension/modules_test.php b/tests/extension/modules_test.php
index c0a136e173..e396b7b73e 100644
--- a/tests/extension/modules_test.php
+++ b/tests/extension/modules_test.php
@@ -209,7 +209,7 @@ class phpbb_extension_modules_test extends phpbb_test_case
*/
public function test_modules_auth($module_auth, $expected)
{
- global $phpbb_extension_manager;
+ global $phpbb_extension_manager, $phpbb_dispatcher;
$phpbb_extension_manager = $this->extension_manager = new phpbb_mock_extension_manager(
dirname(__FILE__) . '/',
@@ -227,6 +227,8 @@ class phpbb_extension_modules_test extends phpbb_test_case
)
);
+ $phpbb_dispatcher = new phpbb_mock_event_dispatcher();
+
$this->assertEquals($expected, p_master::module_auth($module_auth, 0));
}
}