From 1f3a281ad2c9a88d6ba09804bf70ff18ba7ebfc0 Mon Sep 17 00:00:00 2001 From: Markus Friedrich Date: Fri, 10 Jan 2025 11:46:59 +0100 Subject: [PATCH] [BUGFIX] Fix coding standards issues --- Tests/Unit/ViewHelpers/Uri/Facet/AddFacetItemViewHelperTest.php | 2 +- .../ViewHelpers/Uri/Facet/RemoveAllFacetsViewHelperTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Unit/ViewHelpers/Uri/Facet/AddFacetItemViewHelperTest.php b/Tests/Unit/ViewHelpers/Uri/Facet/AddFacetItemViewHelperTest.php index ace118539d..99e84b3a9d 100644 --- a/Tests/Unit/ViewHelpers/Uri/Facet/AddFacetItemViewHelperTest.php +++ b/Tests/Unit/ViewHelpers/Uri/Facet/AddFacetItemViewHelperTest.php @@ -33,7 +33,7 @@ public function addFacetItemWillUseUriBuilderAsExpected(): void $viewHelper->setRenderingContext($renderContextMock); $searchUriBuilderMock = $this->createMock(SearchUriBuilder::class); - $requestUriBuilderStub = $this->createStub(RequestBuilder::class); + $requestUriBuilderStub = self::createStub(RequestBuilder::class); // we expected that the getAddFacetOptionUri will be called on the searchUriBuilder in the end. $searchUriBuilderMock->expects(self::once())->method('getAddFacetValueUri')->with($facet->getResultSet()->getUsedSearchRequest(), 'Color', 'red'); diff --git a/Tests/Unit/ViewHelpers/Uri/Facet/RemoveAllFacetsViewHelperTest.php b/Tests/Unit/ViewHelpers/Uri/Facet/RemoveAllFacetsViewHelperTest.php index de749ecb85..c0590a6af5 100644 --- a/Tests/Unit/ViewHelpers/Uri/Facet/RemoveAllFacetsViewHelperTest.php +++ b/Tests/Unit/ViewHelpers/Uri/Facet/RemoveAllFacetsViewHelperTest.php @@ -39,7 +39,7 @@ public function setFacetItemWillUseUriBuilderAsExpected(): void $searchResultSetMock = $this->createMock(SearchResultSet::class); $searchResultSetMock->expects(self::once())->method('getUsedSearchRequest')->willReturn($mockedPreviousFakedRequest); - $requestUriBuilderStub = $this->createStub(RequestBuilder::class); + $requestUriBuilderStub = self::createStub(RequestBuilder::class); $requestUriBuilderStub->method('build')->willReturn($mockedControllerRequest); $variableProvideMock = $this->createMock(StandardVariableProvider::class);