mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-22 17:56:10 +01:00
commit
74e5f6d432
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