TASK: Make test more readable

Make sure everyone knows what we compare, do not add hardcoded
information.
This commit is contained in:
Daniel Siepmann 2018-03-06 13:23:08 +01:00
parent a893303939
commit 6456f31503
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -89,9 +89,9 @@ class SearchResultTest extends AbstractUnitTestCase
$this->assertCount(3, $resultItems);
$this->assertSame(10, $resultItems[0]['uid']);
$this->assertSame(11, $resultItems[1]['uid']);
$this->assertSame(12, $resultItems[2]['uid']);
$this->assertSame($data[0]['uid'], $resultItems[0]['uid']);
$this->assertSame($data[1]['uid'], $resultItems[1]['uid']);
$this->assertSame($data[2]['uid'], $resultItems[2]['uid']);
$this->assertInstanceOf(ResultItemInterface::class, $resultItems[0]);
$this->assertInstanceOf(ResultItemInterface::class, $resultItems[1]);