diff --git a/Tests/Functional/Compiler/LanguageMenuCompilerTest.php b/Tests/Functional/Compiler/LanguageMenuCompilerTest.php index 8869ac4..96c4677 100644 --- a/Tests/Functional/Compiler/LanguageMenuCompilerTest.php +++ b/Tests/Functional/Compiler/LanguageMenuCompilerTest.php @@ -256,6 +256,7 @@ protected function compileMenu(array $pageDataset, array $configuration = []): a ->getMock(); $pageRepository = GeneralUtility::makeInstance(PageRepository::class); $menuRepository = GeneralUtility::makeInstance(MenuRepository::class, $context, $pageRepository, $this->createMock(EventDispatcherInterface::class)); + $eventDispatcher = $this->createMock(EventDispatcherInterface::class); $cacheHelper = $this->getMockBuilder($this->buildAccessibleProxy(CacheHelper::class)) ->onlyMethods([]) ->disableOriginalConstructor() @@ -273,6 +274,7 @@ protected function compileMenu(array $pageDataset, array $configuration = []): a $context, $cacheHelper, $menuRepository, + $eventDispatcher, ] ) ->getMock();