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

testFindWithZeroLimit() public method

Bug #81, bug #82.
    public function testFindWithZeroLimit()
    {
        $locator = $this->getContentSearchHandler();
        $result = $locator->findContent(new Query(array('filter' => new Criterion\ContentId(10), 'offset' => 0, 'limit' => 0)));
        $this->assertEquals(1, $result->totalCount);
        $this->assertEquals(array(), $result->searchHits);
    }
HandlerContentTest