eZ\Publish\Core\Search\Legacy\Tests\Content\Location\HandlerLocationTest::assertSearchResults PHP Method

assertSearchResults() protected method

Assert that the elements are.
protected assertSearchResults ( $expectedIds, $searchResult )
    protected function assertSearchResults($expectedIds, $searchResult)
    {
        $ids = array_map(function ($hit) {
            return $hit->valueObject->id;
        }, $searchResult->searchHits);
        sort($ids);
        $this->assertEquals($expectedIds, $ids);
    }
HandlerLocationTest