mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-22 12:16:10 +01:00
TASK: Fix CGL
This commit is contained in:
parent
6ac2680211
commit
3731bcf474
2 changed files with 11 additions and 4 deletions
|
@ -168,8 +168,7 @@ class SearchService
|
|||
$searchResult,
|
||||
$newSearchResultItems
|
||||
);
|
||||
}
|
||||
catch (InvalidArgumentException $e) {
|
||||
} catch (InvalidArgumentException $e) {
|
||||
return $searchResult;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -270,7 +270,11 @@ class SearchServiceTest extends AbstractUnitTestCase
|
|||
$this->dataProcessorService->expects($this->never())->method('executeDataProcessor');
|
||||
|
||||
$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);
|
||||
|
||||
$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'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue