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

Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$contentTypeHandler
$fieldRegistry eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\ConverterRegistry Field registry mock.
$setUp

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode 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 méthode

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

getContentFieldHandlerMock() protected méthode

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

getContentMapperMock() protected méthode

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

getContentSearchHandler() protected méthode

This method returns a fully functional search handler to perform tests on.
protected getContentSearchHandler ( array $fullTextSearchConfiguration = [] ) : Handler
$fullTextSearchConfiguration array
Résultat eZ\Publish\Core\Search\Legacy\Content\Handler

getContentTypeHandler() protected méthode

protected getContentTypeHandler ( )

getConverterRegistry() protected méthode

protected getConverterRegistry ( )

setUp() public méthode

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 méthode

testContentIdFilter() public méthode

public testContentIdFilter ( )

testContentIdFilterCount() public méthode

testContentNotCombinatorFilter() public méthode

testContentOrCombinatorFilter() public méthode

testContentSubtreeFilterEq() public méthode

testContentSubtreeFilterIn() public méthode

testContentTypeGroupFilter() public méthode

testContentTypeIdFilter() public méthode

testContentTypeIdentifierFilter() public méthode

testDateMetadataFilterCreatedBetween() public méthode

testDateMetadataFilterModifiedBetween() public méthode

testDateMetadataFilterModifiedGreater() public méthode

testDateMetadataFilterModifiedGreaterOrEqual() public méthode

testDateMetadataFilterModifiedIn() public méthode

testFieldFilter() public méthode

public testFieldFilter ( )

testFieldFilterBetween() public méthode

testFieldFilterContainsPartial() public méthode

testFieldFilterContainsSimple() public méthode

testFieldFilterContainsSimpleNoMatch() public méthode

testFieldFilterIn() public méthode

public testFieldFilterIn ( )

testFieldFilterOr() public méthode

public testFieldFilterOr ( )

testFieldRelationFilterContainsArray() public méthode

testFieldRelationFilterContainsArrayNotMatch() public méthode

testFieldRelationFilterContainsSingle() public méthode

testFieldRelationFilterContainsSingleNoMatch() public méthode

testFieldRelationFilterInArray() public méthode

testFieldRelationFilterInArrayNotMatch() public méthode

testFindContentWithNonSearchableField() public méthode

testFindSingle() public méthode

public testFindSingle ( )

testFindSingleTooMany() public méthode

testFindSingleWithNonSearchableField() public méthode

testFindSingleZero() public méthode

public testFindSingleZero ( )

testFindWithNullLimit() public méthode

Issue with PHP_MAX_INT limit overflow in databases.

testFindWithOffsetToNonexistent() public méthode

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

testFindWithZeroLimit() public méthode

Bug #81, bug #82.

testFindWithoutOffsetLimit() public méthode

Bug #80.

testFullTextDisabledWildcardFilter() public méthode

testFullTextFilter() public méthode

public testFullTextFilter ( )

testFullTextFilterInvalidStopwordThreshold() public méthode

testFullTextFilterNoStopwordRemoval() public méthode

testFullTextFilterStopwordRemoval() public méthode

testFullTextWildcardFilter() public méthode

testLanguageCodeFilter() public méthode

testLanguageCodeFilterIn() public méthode

testLanguageCodeFilterWithAlwaysAvailable() public méthode

testLocationIdFilter() public méthode

testLocationRemoteIdFilter() public méthode

testObjectStateIdFilter() public méthode

testObjectStateIdFilterIn() public méthode

testParentLocationIdFilter() public méthode

testRemoteIdFilter() public méthode

public testRemoteIdFilter ( )

testSectionFilter() public méthode

public testSectionFilter ( )

testStatusFilter() public méthode

public testStatusFilter ( )

testUserMetadataFilterCreatorEqAMember() public méthode

testUserMetadataFilterCreatorInAMember() public méthode

testUserMetadataFilterEqGroupMember() public méthode

testUserMetadataFilterEqGroupMemberNoMatch() public méthode

testUserMetadataFilterInGroupMember() public méthode

testUserMetadataFilterInGroupMemberNoMatch() public méthode

testUserMetadataFilterOwnerAdministrator() public méthode

testUserMetadataFilterOwnerEqAMember() public méthode

testUserMetadataFilterOwnerInAMember() public méthode

testUserMetadataFilterOwnerWrongUserId() public méthode

testVisibilityFilter() public méthode

Property Details

$contentTypeHandler protected_oe property

protected $contentTypeHandler

$fieldRegistry protected_oe property

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

$setUp protected_oe static_oe property

protected static $setUp