protected function getExpectedFinalResultFromHits($hits)
{
$expectedResult = array();
/** @var \eZ\Publish\API\Repository\Values\Content\Search\SearchHit[] $hits */
foreach ($hits as $hit) {
$expectedResult[] = $hit->valueObject;
}
return $expectedResult;
}