eZ\Publish\Core\Search\Legacy\Tests\Content\HandlerContentSortTest::getContentSearchHandler PHP Method

getContentSearchHandler() protected method

This method returns a fully functional search handler to perform tests on.
protected getContentSearchHandler ( array $fullTextSearchConfiguration = [] ) : Handler
$fullTextSearchConfiguration array
return eZ\Publish\Core\Search\Legacy\Content\Handler
    protected function getContentSearchHandler(array $fullTextSearchConfiguration = array())
    {
        $db = $this->getDatabaseHandler();
        return new Content\Handler(new Content\Gateway\DoctrineDatabase($this->getDatabaseHandler(), new Content\Common\Gateway\CriteriaConverter(array(new Content\Common\Gateway\CriterionHandler\MatchAll($db), new Content\Common\Gateway\CriterionHandler\LogicalAnd($db), new Content\Common\Gateway\CriterionHandler\SectionId($db), new Content\Common\Gateway\CriterionHandler\ContentTypeIdentifier($db, $this->getContentTypeHandler()))), new Content\Common\Gateway\SortClauseConverter(array(new Content\Common\Gateway\SortClauseHandler\DateModified($db), new Content\Common\Gateway\SortClauseHandler\DatePublished($db), new Content\Common\Gateway\SortClauseHandler\SectionIdentifier($db), new Content\Common\Gateway\SortClauseHandler\SectionName($db), new Content\Common\Gateway\SortClauseHandler\ContentName($db), new Content\Common\Gateway\SortClauseHandler\Field($db, $this->getLanguageHandler(), $this->getContentTypeHandler()))), $this->getLanguageHandler()), $this->getMock('eZ\\Publish\\Core\\Search\\Legacy\\Content\\Location\\Gateway'), new Content\WordIndexer\Gateway\DoctrineDatabase($this->getDatabaseHandler(), $this->getContentTypeHandler(), $this->getDefinitionBasedTransformationProcessor(), new Content\WordIndexer\Repository\SearchIndex($this->getDatabaseHandler()), $this->getFullTextSearchConfiguration()), $this->getContentMapperMock(), $this->getMock('eZ\\Publish\\Core\\Persistence\\Legacy\\Content\\Location\\Mapper'), $this->getLanguageHandler(), $this->getFullTextMapper($this->getContentTypeHandler()));
    }