diff options
author | Andreas Fischer <bantu@phpbb.com> | 2014-04-03 22:20:37 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2014-04-03 22:20:37 +0200 |
commit | 4e3117a27f3f2eb074219abcb924944b2205b2ff (patch) | |
tree | c9700a6df91c4ec326163a3b492ffdbc545f20cd | |
parent | d88929210acde66ce37e9b29edbf467abe8779df (diff) | |
parent | a5216e1b0483bc5db96f10d3b3504d1fe5ab850d (diff) | |
download | forums-4e3117a27f3f2eb074219abcb924944b2205b2ff.tar forums-4e3117a27f3f2eb074219abcb924944b2205b2ff.tar.gz forums-4e3117a27f3f2eb074219abcb924944b2205b2ff.tar.bz2 forums-4e3117a27f3f2eb074219abcb924944b2205b2ff.tar.xz forums-4e3117a27f3f2eb074219abcb924944b2205b2ff.zip |
Merge pull request #2239 from k-fish/ticket/12350
[ticket/12350] Instantiate Mock Dispatcher for modules_test
* k-fish/ticket/12350:
[ticket/12350] Instantiate Mock Dispatcher for modules_test
-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)); } } |