Method | 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. |
Method | 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 ) : |
Returns the content service to test with $methods mocked. | |
getStubbedRelation ( $id, $type, $fieldDefinitionId, $contentId ) |
protected assertLocationHandlerExpectation ( $locationHandlerMock, $fieldRelations, $type, &$callCounter ) |
protected getFieldTypeServiceMock ( ) : PHPUnit_Framework_MockObject_MockObject | ||
return | PHPUnit_Framework_MockObject_MockObject |
protected getPartlyMockedRelationProcessor ( array $methods = null ) : |
||
$methods | array | |
return |
protected getStubbedRelation ( $id, $type, $fieldDefinitionId, $contentId ) |
public testAppendFieldRelations ( array $fieldRelations, array $expected ) | ||
$fieldRelations | array | |
$expected | array |
public testAppendFieldRelationsLocationMappingWorks ( ) |
public testProcessFieldRelationsAddsRelations ( ) |
public testProcessFieldRelationsNoChanges ( ) |
public testProcessFieldRelationsRemovesRelations ( ) |