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

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.
testContentAndCombinatorFilter ( )
testContentIdFilter ( )
testContentIdFilterCount ( )
testContentNotCombinatorFilter ( )
testContentOrCombinatorFilter ( )
testContentSubtreeFilterEq ( )
testContentSubtreeFilterIn ( )
testContentTypeGroupFilter ( )
testContentTypeIdFilter ( )
testContentTypeIdentifierFilter ( )
testDateMetadataFilterCreatedBetween ( )
testDateMetadataFilterModifiedBetween ( )
testDateMetadataFilterModifiedGreater ( )
testDateMetadataFilterModifiedGreaterOrEqual ( )
testDateMetadataFilterModifiedIn ( )
testFieldFilter ( )
testFieldFilterBetween ( )
testFieldFilterContainsPartial ( )
testFieldFilterContainsSimple ( )
testFieldFilterContainsSimpleNoMatch ( )
testFieldFilterIn ( )
testFieldFilterOr ( )
testFieldRelationFilterContainsArray ( )
testFieldRelationFilterContainsArrayNotMatch ( )
testFieldRelationFilterContainsSingle ( )
testFieldRelationFilterContainsSingleNoMatch ( )
testFieldRelationFilterInArray ( )
testFieldRelationFilterInArrayNotMatch ( )
testFindContentWithNonSearchableField ( )
testFindSingle ( )
testFindSingleTooMany ( )
testFindSingleWithNonSearchableField ( )
testFindSingleZero ( )
testFindWithNullLimit ( ) Issue with PHP_MAX_INT limit overflow in databases.
testFindWithOffsetToNonexistent ( ) Issue with offsetting to the nonexistent results produces \ezcQueryInvalidParameterException exception.
testFindWithZeroLimit ( ) Bug #81, bug #82.
testFindWithoutOffsetLimit ( ) Bug #80.
testFullTextDisabledWildcardFilter ( )
testFullTextFilter ( )
testFullTextFilterInvalidStopwordThreshold ( )
testFullTextFilterNoStopwordRemoval ( )
testFullTextFilterStopwordRemoval ( )
testFullTextWildcardFilter ( )
testLanguageCodeFilter ( )
testLanguageCodeFilterIn ( )
testLanguageCodeFilterWithAlwaysAvailable ( )
testLocationIdFilter ( )
testLocationRemoteIdFilter ( )
testObjectStateIdFilter ( )
testObjectStateIdFilterIn ( )
testParentLocationIdFilter ( )
testRemoteIdFilter ( )
testSectionFilter ( )
testStatusFilter ( )
testUserMetadataFilterCreatorEqAMember ( )
testUserMetadataFilterCreatorInAMember ( )
testUserMetadataFilterEqGroupMember ( )
testUserMetadataFilterEqGroupMemberNoMatch ( )
testUserMetadataFilterInGroupMember ( )
testUserMetadataFilterInGroupMemberNoMatch ( )
testUserMetadataFilterOwnerAdministrator ( )
testUserMetadataFilterOwnerEqAMember ( )
testUserMetadataFilterOwnerInAMember ( )
testUserMetadataFilterOwnerWrongUserId ( )
testVisibilityFilter ( )

Protected Methods

Method Description
assertSearchResults ( $expectedIds, $searchResult ) Assert that the elements are.
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 ( )
getConverterRegistry ( )

Method Details

assertSearchResults() protected method

Assert that the elements are.
protected assertSearchResults ( $expectedIds, $searchResult )

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 ( )

getConverterRegistry() protected method

protected getConverterRegistry ( )

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 ( )

testContentAndCombinatorFilter() public method

testContentIdFilter() public method

public testContentIdFilter ( )

testContentIdFilterCount() public method

testContentNotCombinatorFilter() public method

testContentOrCombinatorFilter() public method

testContentSubtreeFilterEq() public method

testContentSubtreeFilterIn() public method

testContentTypeGroupFilter() public method

testContentTypeIdFilter() public method

testContentTypeIdentifierFilter() public method

testDateMetadataFilterCreatedBetween() public method

testDateMetadataFilterModifiedBetween() public method

testDateMetadataFilterModifiedGreater() public method

testDateMetadataFilterModifiedGreaterOrEqual() public method

testDateMetadataFilterModifiedIn() public method

testFieldFilter() public method

public testFieldFilter ( )

testFieldFilterBetween() public method

testFieldFilterContainsPartial() public method

testFieldFilterContainsSimple() public method

testFieldFilterContainsSimpleNoMatch() public method

testFieldFilterIn() public method

public testFieldFilterIn ( )

testFieldFilterOr() public method

public testFieldFilterOr ( )

testFieldRelationFilterContainsArray() public method

testFieldRelationFilterContainsArrayNotMatch() public method

testFieldRelationFilterContainsSingle() public method

testFieldRelationFilterContainsSingleNoMatch() public method

testFieldRelationFilterInArray() public method

testFieldRelationFilterInArrayNotMatch() public method

testFindContentWithNonSearchableField() public method

testFindSingle() public method

public testFindSingle ( )

testFindSingleTooMany() public method

testFindSingleWithNonSearchableField() public method

testFindSingleZero() public method

public testFindSingleZero ( )

testFindWithNullLimit() public method

Issue with PHP_MAX_INT limit overflow in databases.

testFindWithOffsetToNonexistent() public method

Issue with offsetting to the nonexistent results produces \ezcQueryInvalidParameterException exception.

testFindWithZeroLimit() public method

Bug #81, bug #82.

testFindWithoutOffsetLimit() public method

Bug #80.

testFullTextDisabledWildcardFilter() public method

testFullTextFilter() public method

public testFullTextFilter ( )

testFullTextFilterInvalidStopwordThreshold() public method

testFullTextFilterNoStopwordRemoval() public method

testFullTextFilterStopwordRemoval() public method

testFullTextWildcardFilter() public method

testLanguageCodeFilter() public method

testLanguageCodeFilterIn() public method

testLanguageCodeFilterWithAlwaysAvailable() public method

testLocationIdFilter() public method

testLocationRemoteIdFilter() public method

testObjectStateIdFilter() public method

testObjectStateIdFilterIn() public method

testParentLocationIdFilter() public method

testRemoteIdFilter() public method

public testRemoteIdFilter ( )

testSectionFilter() public method

public testSectionFilter ( )

testStatusFilter() public method

public testStatusFilter ( )

testUserMetadataFilterCreatorEqAMember() public method

testUserMetadataFilterCreatorInAMember() public method

testUserMetadataFilterEqGroupMember() public method

testUserMetadataFilterEqGroupMemberNoMatch() public method

testUserMetadataFilterInGroupMember() public method

testUserMetadataFilterInGroupMemberNoMatch() public method

testUserMetadataFilterOwnerAdministrator() public method

testUserMetadataFilterOwnerEqAMember() public method

testUserMetadataFilterOwnerInAMember() public method

testUserMetadataFilterOwnerWrongUserId() public method

testVisibilityFilter() public method

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