diff --git a/tests/avatar/manager_test.php b/tests/avatar/manager_test.php index 572d434319..19b7797eb4 100644 --- a/tests/avatar/manager_test.php +++ b/tests/avatar/manager_test.php @@ -30,7 +30,7 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case protected function setUp(): void { - global $phpbb_root_path, $phpEx; + global $phpbb_dispatcher, $phpbb_root_path, $phpEx; // Mock phpbb_container $phpbb_container = $this->createMock('Symfony\Component\DependencyInjection\ContainerInterface'); @@ -55,6 +55,7 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case $imagesize = new \FastImageSize\FastImageSize(); $dispatcher = new phpbb_mock_event_dispatcher(); + $phpbb_dispatcher = $dispatcher; $controller_helper = $this->createMock('\phpbb\controller\helper');