PHP Класс eZ\Publish\Core\MVC\Symfony\Matcher\Tests\AbstractMatcherFactoryTest

Наследование: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
testMatch ( )
testMatchFail ( )
testMatchFailNoViewType ( )
testMatchInvalidMatcher ( )

Защищенные методы

Метод Описание
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

Описание методов

getBlockView() защищенный Метод

protected getBlockView ( array $blockProperties = [] ) : PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\Symfony\View\BlockView
$blockProperties array
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\Symfony\View\BlockView

getContentView() защищенный Метод

protected getContentView ( array $contentInfoProperties = [], array $locationProperties = [] ) : PHPUnit_Framework_MockObject_MockObject | ContentView
$contentInfoProperties array
$locationProperties array
Результат PHPUnit_Framework_MockObject_MockObject | eZ\Publish\Core\MVC\Symfony\View\ContentView

getMatchableValueObject() абстрактный защищенный Метод

i.e. Should return eZ\Publish\API\Repository\Values\Content\Location for LocationMatcherFactory.
abstract protected getMatchableValueObject ( ) : eZ\Publish\API\Repository\Values\ValueObject
Результат eZ\Publish\API\Repository\Values\ValueObject

getMatcherClass() абстрактный защищенный Метод

Must be relative to the matcher's ::MATCHER_RELATIVE_NAMESPACE constant. i.e.: Id\\Location.
abstract protected getMatcherClass ( ) : string
Результат string

getNonMatchableValueObject() абстрактный защищенный Метод

i.e. Should return eZ\Publish\API\Repository\Values\Content\Location for LocationMatcherFactory.
abstract protected getNonMatchableValueObject ( ) : eZ\Publish\API\Repository\Values\ValueObject
Результат eZ\Publish\API\Repository\Values\ValueObject

getRepositoryMock() защищенный Метод

protected getRepositoryMock ( ) : PHPUnit_Framework_MockObject_MockObject
Результат PHPUnit_Framework_MockObject_MockObject

testMatch() публичный Метод

public testMatch ( )

testMatchFail() публичный Метод

public testMatchFail ( )

testMatchFailNoViewType() публичный Метод

testMatchInvalidMatcher() публичный Метод