Merge pull request #127 from Codappix/hotfix/cgl

TASK: Fix CGL
This commit is contained in:
Daniel Siepmann 2018-03-06 16:40:42 +01:00 committed by GitHub
commit 74e5f6d432
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -168,8 +168,7 @@ class SearchService
$searchResult, $searchResult,
$newSearchResultItems $newSearchResultItems
); );
} } catch (InvalidArgumentException $e) {
catch (InvalidArgumentException $e) {
return $searchResult; return $searchResult;
} }
} }

View file

@ -270,7 +270,11 @@ class SearchServiceTest extends AbstractUnitTestCase
$this->dataProcessorService->expects($this->never())->method('executeDataProcessor'); $this->dataProcessorService->expects($this->never())->method('executeDataProcessor');
$searchRequest = new SearchRequest(''); $searchRequest = new SearchRequest('');
$this->assertSame($searchResultMock, $this->subject->search($searchRequest), 'Did not get created result without applied data processing'); $this->assertSame(
$searchResultMock,
$this->subject->search($searchRequest),
'Did not get created result without applied data processing'
);
} }
/** /**
@ -312,6 +316,10 @@ class SearchServiceTest extends AbstractUnitTestCase
->willReturn($searchResultMock); ->willReturn($searchResultMock);
$searchRequest = new SearchRequest(''); $searchRequest = new SearchRequest('');
$this->assertSame($searchResultMock, $this->subject->search($searchRequest), 'Did not get created result with applied data processing'); $this->assertSame(
$searchResultMock,
$this->subject->search($searchRequest),
'Did not get created result with applied data processing'
);
} }
} }