PHP Class eZ\Publish\Core\MVC\Symfony\Matcher\Tests\BlockMatcherFactoryTest

Inheritance: extends AbstractMatcherFactoryTest
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$matcherFactoryClass

Public Methods

Method Description
testMatchNonContentBasedMatcher ( )

Protected Methods

Method Description
getMatchableValueObject ( ) : eZ\Publish\API\Repository\Values\ValueObject Returns a valid ValueObject (supported by current MatcherFactory), that will match the test rules.
getMatcherClass ( ) : string Returns the matcher class to use in test configuration.
getNonMatchableValueObject ( ) : eZ\Publish\API\Repository\Values\ValueObject Returns a valid ValueObject (supported by current MatcherFactory), that won't match the test rules.

Method Details

getMatchableValueObject() protected method

i.e. Should return eZ\Publish\API\Repository\Values\Content\Location for LocationMatcherFactory.
protected getMatchableValueObject ( ) : eZ\Publish\API\Repository\Values\ValueObject
return eZ\Publish\API\Repository\Values\ValueObject

getMatcherClass() protected method

Must be relative to the matcher's ::MATCHER_RELATIVE_NAMESPACE constant. i.e.: Id\\Location.
protected getMatcherClass ( ) : string
return string

getNonMatchableValueObject() protected method

i.e. Should return eZ\Publish\API\Repository\Values\Content\Location for LocationMatcherFactory.
protected getNonMatchableValueObject ( ) : eZ\Publish\API\Repository\Values\ValueObject
return eZ\Publish\API\Repository\Values\ValueObject

testMatchNonContentBasedMatcher() public method

Property Details

$matcherFactoryClass protected property

protected $matcherFactoryClass