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

testFindWithNullLimit() public method

Issue with PHP_MAX_INT limit overflow in databases.
    public function testFindWithNullLimit()
    {
        $handler = $this->getContentSearchHandler();
        $searchResult = $handler->findLocations(new LocationQuery(array('filter' => new Criterion\LocationId(2), 'offset' => 0, 'limit' => null)));
        $this->assertEquals(1, $searchResult->totalCount);
        $this->assertCount(1, $searchResult->searchHits);
    }
HandlerLocationTest