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

testFindWithOffsetToNonexistent() public method

Issue with offsetting to the nonexistent results produces \ezcQueryInvalidParameterException exception.
    public function testFindWithOffsetToNonexistent()
    {
        $handler = $this->getContentSearchHandler();
        $searchResult = $handler->findLocations(new LocationQuery(array('filter' => new Criterion\LocationId(2), 'offset' => 1000, 'limit' => null)));
        $this->assertEquals(1, $searchResult->totalCount);
        $this->assertEquals(array(), $searchResult->searchHits);
    }
HandlerLocationTest