mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/12350] Instantiate Mock Dispatcher for modules_test
PHPBB3-12350
This commit is contained in:
@@ -209,7 +209,7 @@ class phpbb_extension_modules_test extends phpbb_test_case
|
|||||||
*/
|
*/
|
||||||
public function test_modules_auth($module_auth, $expected)
|
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(
|
$phpbb_extension_manager = $this->extension_manager = new phpbb_mock_extension_manager(
|
||||||
dirname(__FILE__) . '/',
|
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));
|
$this->assertEquals($expected, p_master::module_auth($module_auth, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user