Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
III-2081: Rename OfferSearchParameters::withRegion() to withRegions()
Browse files Browse the repository at this point in the history
  • Loading branch information
bertramakers committed May 17, 2017
1 parent b9b18ca commit d41dd3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OfferSearchController.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/OfferSearchControllerTest.php
Expand Up @@ -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'),
Expand Down

0 comments on commit d41dd3f

Please sign in to comment.