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

testFindWithZeroLimit() public method

    public function testFindWithZeroLimit()
    {
        $handler = $this->getContentSearchHandler();
        $searchResult = $handler->findLocations(new LocationQuery(array('filter' => new Criterion\LocationId(2), 'offset' => 0, 'limit' => 0)));
        $this->assertEquals(1, $searchResult->totalCount);
        $this->assertEquals(array(), $searchResult->searchHits);
    }
HandlerLocationTest