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

testContentIdFilterCount() public method

    public function testContentIdFilterCount()
    {
        $locator = $this->getContentSearchHandler();
        $result = $locator->findContent(new Query(array('filter' => new Criterion\ContentId(array(1, 4, 10)), 'limit' => 10)));
        $this->assertSame(2, $result->totalCount);
    }
HandlerContentTest