BUGFIX: Fix broken functional test

This commit is contained in:
Daniel Siepmann 2017-07-06 14:13:26 +02:00
parent 05f846a1cf
commit c6a199a7a4
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 3 additions and 3 deletions

View file

@ -44,12 +44,12 @@ class ResultItem implements ResultItemInterface
return $this->data[$offset];
}
public function offsetSet()
public function offsetSet($offset, $value)
{
throw new \BadMethodCallException('It\'s not possible to change the search result.', 1499179077);
}
public function offsetUnset()
public function offsetUnset($offset)
{
throw new \BadMethodCallException('It\'s not possible to change the search result.', 1499179077);
}

View file

@ -55,7 +55,7 @@ class FilterTest extends AbstractFunctionalTestCase
$searchRequest->setFilter(['CType' => 'html']);
$result = $searchService->search($searchRequest);
$this->assertSame('5', $result[0]->getData()['uid'], 'Did not get the expected result entry.');
$this->assertSame('5', $result->getResults()[0]['uid'], 'Did not get the expected result entry.');
$this->assertSame(1, count($result), 'Did not receive the single filtered element.');
}
}