mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-24 16:16:10 +01:00
TASK: Make test more readable
Make sure everyone knows what we compare, do not add hardcoded information.
This commit is contained in:
parent
a893303939
commit
6456f31503
1 changed files with 3 additions and 3 deletions
|
@ -89,9 +89,9 @@ class SearchResultTest extends AbstractUnitTestCase
|
||||||
|
|
||||||
$this->assertCount(3, $resultItems);
|
$this->assertCount(3, $resultItems);
|
||||||
|
|
||||||
$this->assertSame(10, $resultItems[0]['uid']);
|
$this->assertSame($data[0]['uid'], $resultItems[0]['uid']);
|
||||||
$this->assertSame(11, $resultItems[1]['uid']);
|
$this->assertSame($data[1]['uid'], $resultItems[1]['uid']);
|
||||||
$this->assertSame(12, $resultItems[2]['uid']);
|
$this->assertSame($data[2]['uid'], $resultItems[2]['uid']);
|
||||||
|
|
||||||
$this->assertInstanceOf(ResultItemInterface::class, $resultItems[0]);
|
$this->assertInstanceOf(ResultItemInterface::class, $resultItems[0]);
|
||||||
$this->assertInstanceOf(ResultItemInterface::class, $resultItems[1]);
|
$this->assertInstanceOf(ResultItemInterface::class, $resultItems[1]);
|
||||||
|
|
Loading…
Reference in a new issue