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

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

Protected Properties

Property Type Description
$mockConfiguration
$mockConfigurationBuilder

Public Methods

Method Description
convertCallsCanConvertFromWithTheFullNormalizedTargetType ( $source, $fullTargetType )
convertCallsCanConvertFromWithTheFullNormalizedTargetTypeDataProvider ( ) : array
convertDoesNotCatchSecurityExceptions ( )
convertShouldAskConfigurationBuilderForDefaultConfiguration ( )
convertSkipsPropertiesIfConfiguredTo ( )
convertSkipsUnknownPropertiesIfConfiguredTo ( )
dataProviderForFindTypeConverter ( ) : array Simple type conversion
dataProviderForObjectTypeConverters ( ) : array
doMappingReturnsSourceUnchangedIfAlreadyConverted ( )
doMappingReturnsSourceUnchangedIfAlreadyConvertedToCompositeType ( )
findEligibleConverterWithHighestPrioritySkipsConvertersWithNegativePriorities ( )
findFirstEligibleTypeConverterInObjectHierarchyShouldReturnNullIfSourceTypeIsUnknown ( )
findTypeConverterShouldReturnConverterForTargetObjectIfItExists ( $targetClass, $expectedTypeConverter, $typeConverters, $shouldFailWithException = false )
findTypeConverterShouldReturnHighestPriorityTypeConverterForSimpleType ( $source, $targetType, $typeConverters, $expectedTypeConverter )
findTypeConverterShouldReturnTypeConverterFromConfigurationIfItIsSet ( )
findTypeConverterThrowsExceptionIfAllMatchingConvertersHaveNegativePriorities ( )
invalidSourceTypes ( ) : array
setUp ( ) : void Sets up this test case
sourceTypeCanBeCorrectlyDetermined ( $source, $sourceTypes )
sourceWhichIsNoSimpleTypeOrObjectThrowsException ( $source )
validSourceTypes ( ) : array

Protected Methods

Method Description
getMockTypeConverter ( string $name = '', boolean $canConvertFrom = true, array $properties = [], string $typeOfSubObject = '' ) : Neos\Flow\Property\TypeConverterInterface | PHPUnit_Framework_MockObject_MockObject

Method Details

convertCallsCanConvertFromWithTheFullNormalizedTargetType() public method

public convertCallsCanConvertFromWithTheFullNormalizedTargetType ( $source, $fullTargetType )

convertCallsCanConvertFromWithTheFullNormalizedTargetTypeDataProvider() public method

convertDoesNotCatchSecurityExceptions() public method

convertShouldAskConfigurationBuilderForDefaultConfiguration() public method

convertSkipsPropertiesIfConfiguredTo() public method

convertSkipsUnknownPropertiesIfConfiguredTo() public method

dataProviderForFindTypeConverter() public method

Simple type conversion

dataProviderForObjectTypeConverters() public method

doMappingReturnsSourceUnchangedIfAlreadyConverted() public method

doMappingReturnsSourceUnchangedIfAlreadyConvertedToCompositeType() public method

findEligibleConverterWithHighestPrioritySkipsConvertersWithNegativePriorities() public method

findFirstEligibleTypeConverterInObjectHierarchyShouldReturnNullIfSourceTypeIsUnknown() public method

findTypeConverterShouldReturnConverterForTargetObjectIfItExists() public method

public findTypeConverterShouldReturnConverterForTargetObjectIfItExists ( $targetClass, $expectedTypeConverter, $typeConverters, $shouldFailWithException = false )

findTypeConverterShouldReturnHighestPriorityTypeConverterForSimpleType() public method

public findTypeConverterShouldReturnHighestPriorityTypeConverterForSimpleType ( $source, $targetType, $typeConverters, $expectedTypeConverter )

findTypeConverterShouldReturnTypeConverterFromConfigurationIfItIsSet() public method

findTypeConverterThrowsExceptionIfAllMatchingConvertersHaveNegativePriorities() public method

getMockTypeConverter() protected method

protected getMockTypeConverter ( string $name = '', boolean $canConvertFrom = true, array $properties = [], string $typeOfSubObject = '' ) : Neos\Flow\Property\TypeConverterInterface | PHPUnit_Framework_MockObject_MockObject
$name string
$canConvertFrom boolean
$properties array
$typeOfSubObject string
return Neos\Flow\Property\TypeConverterInterface | PHPUnit_Framework_MockObject_MockObject

invalidSourceTypes() public method

public invalidSourceTypes ( ) : array
return array

setUp() public method

Sets up this test case
public setUp ( ) : void
return void

sourceTypeCanBeCorrectlyDetermined() public method

public sourceTypeCanBeCorrectlyDetermined ( $source, $sourceTypes )

sourceWhichIsNoSimpleTypeOrObjectThrowsException() public method

validSourceTypes() public method

public validSourceTypes ( ) : array
return array

Property Details

$mockConfiguration protected property

protected $mockConfiguration

$mockConfigurationBuilder protected property

protected $mockConfigurationBuilder