From d41dd3fbd727c2dfda5f7c3ce8cc4966adfcd33d Mon Sep 17 00:00:00 2001 From: Bert Ramakers Date: Wed, 17 May 2017 10:07:37 +0200 Subject: [PATCH] III-2081: Rename OfferSearchParameters::withRegion() to withRegions() --- src/OfferSearchController.php | 2 +- tests/OfferSearchControllerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OfferSearchController.php b/src/OfferSearchController.php index 7d24efd..4c5cb68 100644 --- a/src/OfferSearchController.php +++ b/src/OfferSearchController.php @@ -178,7 +178,7 @@ public function search(Request $request) $regionIds = $this->getRegionIdsFromQuery($request, 'regions'); if (!empty($regionIds)) { - $parameters = $parameters->withRegion( + $parameters = $parameters->withRegions( $this->regionIndexName, $this->regionDocumentType, ...$regionIds diff --git a/tests/OfferSearchControllerTest.php b/tests/OfferSearchControllerTest.php index 57326f1..b6d9df8 100644 --- a/tests/OfferSearchControllerTest.php +++ b/tests/OfferSearchControllerTest.php @@ -171,7 +171,7 @@ public function it_returns_a_paged_collection_of_search_results_based_on_request ->withWorkflowStatus( new WorkflowStatus('DRAFT') ) - ->withRegion( + ->withRegions( $this->regionIndexName, $this->regionDocumentType, new RegionId('gem-leuven'),