PHP Класс eZ\Publish\Core\Repository\Tests\Service\Mock\RelationProcessorTest

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

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

Метод Описание
providerForTestAppendRelations ( )
testAppendFieldRelations ( array $fieldRelations, array $expected ) Test for the appendFieldRelations() method.
testAppendFieldRelationsLocationMappingWorks ( ) Test for the appendFieldRelations() method.
testConstructor ( ) Test for the __construct() method.
testProcessFieldRelationsAddsRelations ( ) Test for the processFieldRelations() method.
testProcessFieldRelationsNoChanges ( ) Test for the processFieldRelations() method.
testProcessFieldRelationsRemovesRelations ( ) Test for the processFieldRelations() method.

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

Метод Описание
assertLocationHandlerExpectation ( $locationHandlerMock, $fieldRelations, $type, &$callCounter ) Assert loading Locations to find Content id in {@link RelationProcessor::appendFieldRelations()} method.
getFieldTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject
getPartlyMockedRelationProcessor ( array $methods = null ) : RelationProcessor | PHPUnit_Framework_MockObject_MockObject Returns the content service to test with $methods mocked.
getStubbedRelation ( $id, $type, $fieldDefinitionId, $contentId )

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

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

Assert loading Locations to find Content id in {@link RelationProcessor::appendFieldRelations()} method.
protected assertLocationHandlerExpectation ( $locationHandlerMock, $fieldRelations, $type, &$callCounter )

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

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

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

Injected Repository comes from {@see \getRepositoryMock()}
protected getPartlyMockedRelationProcessor ( array $methods = null ) : RelationProcessor | PHPUnit_Framework_MockObject_MockObject
$methods array
Результат eZ\Publish\Core\Repository\Helper\RelationProcessor | PHPUnit_Framework_MockObject_MockObject

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

protected getStubbedRelation ( $id, $type, $fieldDefinitionId, $contentId )

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

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

Test for the appendFieldRelations() method.
public testAppendFieldRelations ( array $fieldRelations, array $expected )
$fieldRelations array
$expected array

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

Test for the appendFieldRelations() method.

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

Test for the __construct() method.
public testConstructor ( )

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

Test for the processFieldRelations() method.

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

Test for the processFieldRelations() method.

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

Test for the processFieldRelations() method.