mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 09:36:11 +01:00
BUGFIX: Fix broken functional test
This commit is contained in:
parent
05f846a1cf
commit
c6a199a7a4
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue