mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 03:56:11 +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,
|
$searchResult,
|
||||||
$newSearchResultItems
|
$newSearchResultItems
|
||||||
);
|
);
|
||||||
}
|
} catch (InvalidArgumentException $e) {
|
||||||
catch (InvalidArgumentException $e) {
|
|
||||||
return $searchResult;
|
return $searchResult;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue