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

testFullTextFilterNoStopwordRemoval() public method

    public function testFullTextFilterNoStopwordRemoval()
    {
        $handler = $this->getContentSearchHandler(array('stopWordThresholdFactor' => 1));
        $result = $handler->findLocations(new LocationQuery(array('filter' => new Criterion\FullText('the'), 'limit' => 10)));
        $this->assertEquals(26, $result->totalCount);
        $this->assertCount(10, $result->searchHits);
        $this->assertEquals(10, count(array_map(function ($hit) {
            return $hit->valueObject->id;
        }, $result->searchHits)));
    }
HandlerLocationTest