PHP Class eZ\Publish\Core\Search\Legacy\Tests\Content\HandlerContentSortTest

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$contentTypeHandler
$fieldRegistry eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry Field registry mock.
$setUp

Public Methods

Method Description
setUp ( ) Only set up once for these read only tests on a large fixture.
testNoSorting ( )
testSortContentName ( )
testSortDateModified ( )
testSortDatePublished ( )
testSortFieldNumeric ( )
testSortFieldText ( )
testSortSectionIdentifier ( )
testSortSectionName ( )

Protected Methods

Method Description
getContentFieldHandlerMock ( ) : FieldHandler Returns a content field handler mock.
getContentMapperMock ( ) : Mapper Returns a content mapper mock.
getContentSearchHandler ( array $fullTextSearchConfiguration = [] ) : Handler Returns the content search handler to test.
getContentTypeHandler ( )
getFieldRegistry ( ) : ConverterRegistry Returns a field registry mock object.

Method Details

getContentFieldHandlerMock() protected method

Returns a content field handler mock.
protected getContentFieldHandlerMock ( ) : FieldHandler
return eZ\Publish\Core\Persistence\Legacy\Content\FieldHandler

getContentMapperMock() protected method

Returns a content mapper mock.
protected getContentMapperMock ( ) : Mapper
return eZ\Publish\Core\Persistence\Legacy\Content\Mapper

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

getContentTypeHandler() protected method

protected getContentTypeHandler ( )

getFieldRegistry() protected method

Returns a field registry mock object.
protected getFieldRegistry ( ) : ConverterRegistry
return eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry

setUp() public method

Skipping the reset-up, since setting up for these tests takes quite some time, which is not required to spent, since we are only reading from the database anyways.
public setUp ( )

testNoSorting() public method

public testNoSorting ( )

testSortContentName() public method

public testSortContentName ( )

testSortDateModified() public method

testSortDatePublished() public method

testSortFieldNumeric() public method

testSortFieldText() public method

public testSortFieldText ( )

testSortSectionIdentifier() public method

testSortSectionName() public method

public testSortSectionName ( )

Property Details

$contentTypeHandler protected property

protected $contentTypeHandler

$fieldRegistry protected property

Field registry mock.
protected ConverterRegistry,eZ\Publish\Core\Persistence\Legacy\Content\FieldValue $fieldRegistry
return eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry

$setUp protected static property

protected static $setUp