TASK: Fix CGL

This commit is contained in:
Daniel Siepmann 2018-03-06 16:39:07 +01:00
parent 6ac2680211
commit 3731bcf474
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
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'
);
} }
} }