PHP Class Neos\Flow\Tests\Functional\Property\PropertyMapperTest

Inheritance: extends Neos\Flow\Tests\FunctionalTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$propertyMapper Neos\Flow\Property\PropertyMapper
$testablePersistenceEnabled

Public Methods

Method Description
convertFromShouldThrowExceptionIfGivenSourceTypeIsNotATargetType ( )
convertedAccountRolesCanBeSet ( ) Test case for #47232
domainObjectWithSimplePropertiesCanBeCreated ( )
domainObjectWithVirtualPropertiesCanBeCreated ( )
embeddedValueobjectCanBeMapped ( )
getTargetPropertyNameShouldReturnTheUnmodifiedPropertyNameWithoutConfiguration ( )
ifTargetObjectTypeIsPassedAsArgumentDoNotConvertIt ( ) Testcase for http://forge.typo3.org/issues/36988 - needed for Neos editing
ifTargetObjectTypeIsPassedRecursivelyDoNotConvertIt ( ) Testcase for http://forge.typo3.org/issues/39445
integerCanBeMappedToString ( )
invalidTypeConverterConfigurationsForOverridingTargetTypes ( ) : array Data provider with invalid configuration for target type overrides
mappingOfPropertiesWithUnqualifiedInterfaceName ( )
mappingPersistentEntityAllowsToSetValueToNull ( )
mappingPersistentEntityOnlyChangesModifiedProperties ( )
mappingToFieldsFromSubclassThrowsExceptionIfTypeConverterOptionIsInvalidOrNotSet ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null )
mappingToFieldsFromSubclassWorksIfTargetTypeIsOverridden ( ) Testcase for #32829
overridenTargetTypeForEntityMustBeASubclass ( )
overridenTargetTypeForSimpleObjectMustBeASubclass ( )
persistentEntityCanBeSerializedToIdentifierUsingObjectSource ( )
setUp ( ) : void
simpleObjectWithSimplePropertiesCanBeCreated ( )
targetTypeForEntityCanBeOverridenIfConfigured ( )
targetTypeForSimpleObjectCanBeOverridenIfConfigured ( )
valueobjectCanBeMapped ( )

Protected Methods

Method Description
createTestEntity ( ) : string Add and persist a test entity, and return the identifier of the newly created entity.

Method Details

convertFromShouldThrowExceptionIfGivenSourceTypeIsNotATargetType() public method

convertedAccountRolesCanBeSet() public method

Test case for #47232

createTestEntity() protected method

Add and persist a test entity, and return the identifier of the newly created entity.
protected createTestEntity ( ) : string
return string identifier of newly created entity

domainObjectWithSimplePropertiesCanBeCreated() public method

domainObjectWithVirtualPropertiesCanBeCreated() public method

embeddedValueobjectCanBeMapped() public method

getTargetPropertyNameShouldReturnTheUnmodifiedPropertyNameWithoutConfiguration() public method

ifTargetObjectTypeIsPassedAsArgumentDoNotConvertIt() public method

Testcase for http://forge.typo3.org/issues/36988 - needed for Neos editing

ifTargetObjectTypeIsPassedRecursivelyDoNotConvertIt() public method

Testcase for http://forge.typo3.org/issues/39445

integerCanBeMappedToString() public method

invalidTypeConverterConfigurationsForOverridingTargetTypes() public method

Data provider with invalid configuration for target type overrides

mappingOfPropertiesWithUnqualifiedInterfaceName() public method

mappingPersistentEntityAllowsToSetValueToNull() public method

mappingPersistentEntityOnlyChangesModifiedProperties() public method

mappingToFieldsFromSubclassThrowsExceptionIfTypeConverterOptionIsInvalidOrNotSet() public method

public mappingToFieldsFromSubclassThrowsExceptionIfTypeConverterOptionIsInvalidOrNotSet ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null )
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface

mappingToFieldsFromSubclassWorksIfTargetTypeIsOverridden() public method

Testcase for #32829

overridenTargetTypeForEntityMustBeASubclass() public method

overridenTargetTypeForSimpleObjectMustBeASubclass() public method

persistentEntityCanBeSerializedToIdentifierUsingObjectSource() public method

setUp() public method

public setUp ( ) : void
return void

simpleObjectWithSimplePropertiesCanBeCreated() public method

targetTypeForEntityCanBeOverridenIfConfigured() public method

targetTypeForSimpleObjectCanBeOverridenIfConfigured() public method

valueobjectCanBeMapped() public method

Property Details

$propertyMapper protected property

protected PropertyMapper,Neos\Flow\Property $propertyMapper
return Neos\Flow\Property\PropertyMapper

$testablePersistenceEnabled protected static property

protected static $testablePersistenceEnabled