PHP Class eZ\Publish\Core\Search\Legacy\Tests\Content\Location\HandlerLocationTest

Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$contentTypeHandler
$fieldRegistry
$setUp

Public Methods

Method Description
setUp ( ) Only set up once for these read only tests on a large fixture.
testContentDepthFilterBetween ( )
testContentDepthFilterEq ( )
testContentDepthFilterGreaterThan ( )
testContentDepthFilterGreaterThanOrEqual ( )
testContentDepthFilterIn ( )
testContentDepthFilterLessThan ( )
testContentDepthFilterLessThanOrEqual ( )
testContentIdFilterEquals ( )
testContentIdFilterIn ( )
testContentTypeGroupFilter ( )
testContentTypeIdFilter ( )
testContentTypeIdentifierFilter ( )
testDateMetadataFilterCreatedBetween ( )
testDateMetadataFilterModifiedBetween ( )
testDateMetadataFilterModifiedGreater ( )
testDateMetadataFilterModifiedGreaterOrEqual ( )
testDateMetadataFilterModifiedIn ( )
testFieldFilter ( )
testFieldFilterBetween ( )
testFieldFilterContainsPartial ( )
testFieldFilterContainsSimple ( )
testFieldFilterContainsSimpleNoMatch ( )
testFieldFilterIn ( )
testFieldFilterOr ( )
testFieldRelationFilterContainsArray ( )
testFieldRelationFilterContainsArrayNotMatch ( )
testFieldRelationFilterContainsSingle ( )
testFieldRelationFilterContainsSingleNoMatch ( )
testFieldRelationFilterInArray ( )
testFieldRelationFilterInArrayNotMatch ( )
testFindWithNullLimit ( ) Issue with PHP_MAX_INT limit overflow in databases.
testFindWithOffsetToNonexistent ( ) Issue with offsetting to the nonexistent results produces \ezcQueryInvalidParameterException exception.
testFindWithZeroLimit ( )
testFindWithoutOffsetLimit ( )
testFullTextDisabledWildcardFilter ( )
testFullTextFilter ( )
testFullTextFilterInvalidStopwordThreshold ( )
testFullTextFilterNoStopwordRemoval ( )
testFullTextFilterStopwordRemoval ( )
testFullTextWildcardFilter ( )
testIsMainLocationFilter ( )
testIsNotMainLocationFilter ( )
testLanguageCodeFilter ( )
testLanguageCodeFilterIn ( )
testLanguageCodeFilterWithAlwaysAvailable ( )
testLocationIdAndCombinatorFilter ( )
testLocationIdFilter ( )
testLocationIdParentLocationIdAndCombinatorFilter ( )
testLocationNotCombinatorFilter ( )
testLocationOrCombinatorFilter ( )
testLocationPriorityFilter ( )
testLocationRemoteIdFilter ( )
testMatchAllFilter ( )
testObjectStateIdFilter ( )
testObjectStateIdFilterIn ( )
testParentLocationIdFilter ( )
testRemoteIdFilter ( )
testSectionFilter ( )
testUserMetadataFilterCreatorEqAMember ( )
testUserMetadataFilterCreatorInAMember ( )
testUserMetadataFilterEqGroupMember ( )
testUserMetadataFilterEqGroupMemberNoMatch ( )
testUserMetadataFilterInGroupMember ( )
testUserMetadataFilterInGroupMemberNoMatch ( )
testUserMetadataFilterOwnerAdministrator ( )
testUserMetadataFilterOwnerEqAMember ( )
testUserMetadataFilterOwnerInAMember ( )
testUserMetadataFilterOwnerWrongUserId ( )
testVisibilityFilterHidden ( )
testVisibilityFilterVisible ( )

Protected Methods

Method Description
assertSearchResults ( $expectedIds, $searchResult ) Assert that the elements are.
getContentSearchHandler ( array $fullTextSearchConfiguration = [] ) : Handler Returns the location search handler to test.
getContentTypeHandler ( )
getConverterRegistry ( )
getLocationMapperMock ( ) : Mapper Returns a location mapper mock.

Method Details

assertSearchResults() protected method

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

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

getLocationMapperMock() protected method

Returns a location mapper mock.
protected getLocationMapperMock ( ) : Mapper
return eZ\Publish\Core\Persistence\Legacy\Content\Location\Mapper

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

testContentDepthFilterBetween() public method

testContentDepthFilterEq() public method

testContentDepthFilterGreaterThan() public method

testContentDepthFilterGreaterThanOrEqual() public method

testContentDepthFilterIn() public method

testContentDepthFilterLessThan() public method

testContentDepthFilterLessThanOrEqual() public method

testContentIdFilterEquals() public method

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

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

testFindWithoutOffsetLimit() public method

testFullTextDisabledWildcardFilter() public method

testFullTextFilter() public method

public testFullTextFilter ( )

testFullTextFilterInvalidStopwordThreshold() public method

testFullTextFilterNoStopwordRemoval() public method

testFullTextFilterStopwordRemoval() public method

testFullTextWildcardFilter() public method

testIsMainLocationFilter() public method

testIsNotMainLocationFilter() public method

testLanguageCodeFilter() public method

testLanguageCodeFilterIn() public method

testLanguageCodeFilterWithAlwaysAvailable() public method

testLocationIdAndCombinatorFilter() public method

testLocationIdFilter() public method

testLocationIdParentLocationIdAndCombinatorFilter() public method

testLocationNotCombinatorFilter() public method

testLocationOrCombinatorFilter() public method

testLocationPriorityFilter() public method

testLocationRemoteIdFilter() public method

testMatchAllFilter() public method

public testMatchAllFilter ( )

testObjectStateIdFilter() public method

testObjectStateIdFilterIn() public method

testParentLocationIdFilter() public method

testRemoteIdFilter() public method

public testRemoteIdFilter ( )

testSectionFilter() public method

public testSectionFilter ( )

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

testVisibilityFilterHidden() public method

testVisibilityFilterVisible() public method

Property Details

$contentTypeHandler protected property

protected $contentTypeHandler

$fieldRegistry protected property

protected $fieldRegistry

$setUp protected static property

protected static $setUp