PHP Class eZ\Publish\Core\Repository\Tests\Service\Mock\RelationProcessorTest

Inheritance: extends Base
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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 )

Method Details

assertLocationHandlerExpectation() protected méthode

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

getFieldTypeServiceMock() protected méthode

protected getFieldTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject
Résultat PHPUnit_Framework_MockObject_MockObject

getPartlyMockedRelationProcessor() protected méthode

Injected Repository comes from {@see \getRepositoryMock()}
protected getPartlyMockedRelationProcessor ( array $methods = null ) : RelationProcessor | PHPUnit_Framework_MockObject_MockObject
$methods array
Résultat eZ\Publish\Core\Repository\Helper\RelationProcessor | PHPUnit_Framework_MockObject_MockObject

getStubbedRelation() protected méthode

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

providerForTestAppendRelations() public méthode

testAppendFieldRelations() public méthode

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

testAppendFieldRelationsLocationMappingWorks() public méthode

Test for the appendFieldRelations() method.

testConstructor() public méthode

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

testProcessFieldRelationsAddsRelations() public méthode

Test for the processFieldRelations() method.

testProcessFieldRelationsNoChanges() public méthode

Test for the processFieldRelations() method.

testProcessFieldRelationsRemovesRelations() public méthode

Test for the processFieldRelations() method.