PHP 클래스 eZ\Publish\Core\Repository\Tests\Service\Mock\RelationProcessorTest

상속: extends Base
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

공개 메소드들

메소드 설명
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.