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

assertSearchResults() protected method

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