From 14db0adacebc707c4b635b9b403e29a685dc7b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Mon, 2 Sep 2024 12:05:47 +0200 Subject: [PATCH] Update tests --- tests/Core/Search/Legacy/Content/HandlerContentTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Core/Search/Legacy/Content/HandlerContentTest.php b/tests/Core/Search/Legacy/Content/HandlerContentTest.php index fcd75a0e..1212a441 100644 --- a/tests/Core/Search/Legacy/Content/HandlerContentTest.php +++ b/tests/Core/Search/Legacy/Content/HandlerContentTest.php @@ -8,6 +8,7 @@ use Ibexa\Contracts\Core\Persistence\Content as ContentObject; use Ibexa\Contracts\Core\Persistence\Content\ContentInfo; use Ibexa\Contracts\Core\Persistence\Content\VersionInfo; +use Ibexa\Contracts\Core\Persistence\Content\Type\Handler as ContentTypeHandler; use Ibexa\Contracts\Core\Repository\Values\Content\Query; use Ibexa\Contracts\Core\Repository\Values\Content\Query\SortClause; use Ibexa\Contracts\Core\Repository\Values\Content\Search\SearchHit; @@ -25,6 +26,7 @@ use Netgen\TagsBundle\Core\Search\Legacy\Content\Common\Gateway\CriterionHandler\Tags\TagKeyword as TagKeywordCriterionHandler; use PHPUnit\Framework\MockObject\MockObject; +use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use function array_filter; use function array_map; use function array_values; @@ -295,6 +297,8 @@ private function getContentMapperMock(): MockObject&Mapper [ $this->fieldRegistry, $this->getLanguageHandler(), + $this->createMock(ContentTypeHandler::class), + $this->createMock(EventDispatcherInterface::class), ] ) ->getMock();