PHP 클래스 Neos\Flow\Tests\Unit\Property\TypeConverter\PersistentObjectConverterTest

상속: extends Neos\Flow\Tests\UnitTestCase
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$converter Neos\Flow\Property\TypeConverterInterface
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockPersistenceManager Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockReflectionService Neos\Flow\Reflection\ReflectionService | PHPUnit_Framework_MockObject_MockObject

공개 메소드들

메소드 설명
canConvertFromReturnsTrueIfClassIsTaggedWithEntityOrValueObject ( boolean $isEntity, boolean $isValueObject, boolean $expected )
checkMetadata ( )
convertFromReturnsTargetNotFoundErrorIfHandleArrayDataFails ( )
convertFromShouldCreateObject ( )
convertFromShouldCreateObjectWhenThereAreConstructorParameters ( )
convertFromShouldCreateObjectWhenThereAreOptionalConstructorParameters ( )
convertFromShouldFetchObjectFromPersistenceIfNonUuidStringIsGiven ( )
convertFromShouldFetchObjectFromPersistenceIfOnlyIdentityArrayGiven ( )
convertFromShouldFetchObjectFromPersistenceIfUuidStringIsGiven ( )
convertFromShouldReturnFirstMatchingObjectIfMultipleIdentityPropertiesExist ( )
convertFromShouldReturnNullForEmptyString ( )
convertFromShouldReturnTargetNotFoundErrorIfNoMatchingObjectWasFound ( )
convertFromShouldThrowExceptionIfIdentityIsOfInvalidType ( )
convertFromShouldThrowExceptionIfMoreThanOneObjectWasFound ( )
convertFromShouldThrowExceptionIfObjectNeedsToBeCreatedButConfigurationIsNotSet ( )
convertFromShouldThrowExceptionIfObjectNeedsToBeModifiedButConfigurationIsNotSet ( )
convertFromShouldThrowExceptionIfPropertyOnTargetObjectCouldNotBeSet ( )
convertFromShouldThrowExceptionIfRequiredConstructorParameterWasNotFound ( )
dataProviderForCanConvert ( ) : array
getSourceChildPropertiesToBeConvertedReturnsAllPropertiesExceptTheIdentityProperty ( )
getTypeOfChildPropertyShouldConsiderConstructors ( )
getTypeOfChildPropertyShouldConsiderSetters ( )
getTypeOfChildPropertyShouldUseConfiguredTypeIfItWasSet ( )
getTypeOfChildPropertyShouldUseReflectionServiceToDetermineType ( )
setUp ( )
setupMockQuery ( integer $numberOfResults, PHPUnit_Framework_MockObject_Matcher_Invocation $howOftenIsGetFirstCalled ) : stdClass

보호된 메소드들

메소드 설명
buildConfiguration ( array $typeConverterOptions ) : PropertyMappingConfiguration

메소드 상세

buildConfiguration() 보호된 메소드

protected buildConfiguration ( array $typeConverterOptions ) : PropertyMappingConfiguration
$typeConverterOptions array
리턴 Neos\Flow\Property\PropertyMappingConfiguration

canConvertFromReturnsTrueIfClassIsTaggedWithEntityOrValueObject() 공개 메소드

public canConvertFromReturnsTrueIfClassIsTaggedWithEntityOrValueObject ( boolean $isEntity, boolean $isValueObject, boolean $expected )
$isEntity boolean
$isValueObject boolean
$expected boolean

checkMetadata() 공개 메소드

public checkMetadata ( )

convertFromReturnsTargetNotFoundErrorIfHandleArrayDataFails() 공개 메소드

convertFromShouldCreateObject() 공개 메소드

convertFromShouldCreateObjectWhenThereAreConstructorParameters() 공개 메소드

convertFromShouldCreateObjectWhenThereAreOptionalConstructorParameters() 공개 메소드

convertFromShouldFetchObjectFromPersistenceIfNonUuidStringIsGiven() 공개 메소드

convertFromShouldFetchObjectFromPersistenceIfOnlyIdentityArrayGiven() 공개 메소드

convertFromShouldFetchObjectFromPersistenceIfUuidStringIsGiven() 공개 메소드

convertFromShouldReturnFirstMatchingObjectIfMultipleIdentityPropertiesExist() 공개 메소드

convertFromShouldReturnNullForEmptyString() 공개 메소드

convertFromShouldReturnTargetNotFoundErrorIfNoMatchingObjectWasFound() 공개 메소드

convertFromShouldThrowExceptionIfIdentityIsOfInvalidType() 공개 메소드

convertFromShouldThrowExceptionIfMoreThanOneObjectWasFound() 공개 메소드

convertFromShouldThrowExceptionIfObjectNeedsToBeCreatedButConfigurationIsNotSet() 공개 메소드

convertFromShouldThrowExceptionIfObjectNeedsToBeModifiedButConfigurationIsNotSet() 공개 메소드

convertFromShouldThrowExceptionIfPropertyOnTargetObjectCouldNotBeSet() 공개 메소드

convertFromShouldThrowExceptionIfRequiredConstructorParameterWasNotFound() 공개 메소드

dataProviderForCanConvert() 공개 메소드

public dataProviderForCanConvert ( ) : array
리턴 array

getSourceChildPropertiesToBeConvertedReturnsAllPropertiesExceptTheIdentityProperty() 공개 메소드

getTypeOfChildPropertyShouldConsiderConstructors() 공개 메소드

getTypeOfChildPropertyShouldConsiderSetters() 공개 메소드

getTypeOfChildPropertyShouldUseConfiguredTypeIfItWasSet() 공개 메소드

getTypeOfChildPropertyShouldUseReflectionServiceToDetermineType() 공개 메소드

setUp() 공개 메소드

public setUp ( )

setupMockQuery() 공개 메소드

public setupMockQuery ( integer $numberOfResults, PHPUnit_Framework_MockObject_Matcher_Invocation $howOftenIsGetFirstCalled ) : stdClass
$numberOfResults integer
$howOftenIsGetFirstCalled PHPUnit_Framework_MockObject_Matcher_Invocation
리턴 stdClass

프로퍼티 상세

$converter 보호되어 있는 프로퍼티

protected TypeConverterInterface,Neos\Flow\Property $converter
리턴 Neos\Flow\Property\TypeConverterInterface

$mockObjectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockPersistenceManager 보호되어 있는 프로퍼티

protected PersistenceManagerInterface,Neos\Flow\Persistence|PHPUnit_Framework_MockObject_MockObject $mockPersistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockReflectionService 보호되어 있는 프로퍼티

protected ReflectionService,Neos\Flow\Reflection|PHPUnit_Framework_MockObject_MockObject $mockReflectionService
리턴 Neos\Flow\Reflection\ReflectionService | PHPUnit_Framework_MockObject_MockObject