eZ\Publish\Core\Pagination\Tests\ContentSearchAdapterTest::getExpectedFinalResultFromHits PHP Method

getExpectedFinalResultFromHits() protected method

Returns expected result from adapter from search hits.
protected getExpectedFinalResultFromHits ( $hits ) : mixed
$hits
return mixed
    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;
    }