[ticket/12350] Instantiate Mock Dispatcher for modules_test

PHPBB3-12350
This commit is contained in:
K Fisher 2014-04-03 16:17:10 -04:00
parent d88929210a
commit a5216e1b04

View file

@ -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));
}
}