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

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: ezsystems/ezpublish-kernel

Public Methods

Method Description
testMatch ( )
testMatchFail ( )
testMatchFailNoViewType ( )
testMatchInvalidMatcher ( )

Protected Methods

Method 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 method

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

getContentView() protected method

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

getMatchableValueObject() abstract protected method

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

getMatcherClass() abstract protected method

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

getNonMatchableValueObject() abstract protected method

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

getRepositoryMock() protected method

protected getRepositoryMock ( ) : PHPUnit_Framework_MockObject_MockObject
return PHPUnit_Framework_MockObject_MockObject

testMatch() public method

public testMatch ( )

testMatchFail() public method

public testMatchFail ( )

testMatchFailNoViewType() public method

testMatchInvalidMatcher() public method