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

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode Description
testMatch ( )
testMatchFail ( )
testMatchFailNoViewType ( )
testMatchInvalidMatcher ( )

Méthodes protégées

Méthode Description
getBlockView ( array $blockProperties = [] ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\Symfony\View\BlockView
getContentView ( array $contentInfoProperties = [], array $locationProperties = [] ) : PHPUnit_Framework_MockObject_MockObject | ContentView
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.
getRepositoryMock ( ) : PHPUnit_Framework_MockObject_MockObject

Method Details

getBlockView() protected méthode

protected getBlockView ( array $blockProperties = [] ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\Symfony\View\BlockView
$blockProperties array
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\Symfony\View\BlockView

getContentView() protected méthode

protected getContentView ( array $contentInfoProperties = [], array $locationProperties = [] ) : PHPUnit_Framework_MockObject_MockObject | ContentView
$contentInfoProperties array
$locationProperties array
Résultat PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\Symfony\View\ContentView

getMatchableValueObject() abstract protected méthode

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

getMatcherClass() abstract protected méthode

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

getNonMatchableValueObject() abstract protected méthode

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

getRepositoryMock() protected méthode

protected getRepositoryMock ( ) : PHPUnit_Framework_MockObject_MockObject
Résultat PHPUnit_Framework_MockObject_MockObject

testMatch() public méthode

public testMatch ( )

testMatchFail() public méthode

public testMatchFail ( )

testMatchFailNoViewType() public méthode

testMatchInvalidMatcher() public méthode