eZ\Publish\Core\Search\Legacy\Tests\Content\HandlerContentSortTest::testNoSorting PHP Method

testNoSorting() public method

public testNoSorting ( )
    public function testNoSorting()
    {
        $locator = $this->getContentSearchHandler();
        $result = $locator->findContent(new Query(array('filter' => new Criterion\SectionId(array(2)), 'offset' => 0, 'limit' => 10, 'sortClauses' => array())));
        $ids = array_map(function ($hit) {
            return $hit->valueObject->id;
        }, $result->searchHits);
        sort($ids);
        $this->assertEquals(array(4, 10, 11, 12, 13, 14, 42, 226), $ids);
    }