mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/12350] Instantiate Mock Dispatcher for modules_test
PHPBB3-12350
This commit is contained in:
parent
d88929210a
commit
a5216e1b04
1 changed files with 3 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue