diff options
author | K Fisher <kevanfisher@hotmail.com> | 2014-04-03 16:17:10 -0400 |
---|---|---|
committer | K Fisher <kevanfisher@hotmail.com> | 2014-04-03 16:17:10 -0400 |
commit | a5216e1b0483bc5db96f10d3b3504d1fe5ab850d (patch) | |
tree | c9700a6df91c4ec326163a3b492ffdbc545f20cd | |
parent | d88929210acde66ce37e9b29edbf467abe8779df (diff) | |
download | forums-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
-rw-r--r-- | tests/extension/modules_test.php | 4 |
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)); } } |