‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest:

Public Member Functions

 convertCreatesAPropertyMappingConfigurationIfNotGiven ()
 
 convertReturnsNullIfDoMappingReturnsAnError ()
 
 convertThrowsATargetNotFoundException ()
 
 convertThrowsAnExceptionIfNoTypeConverterCanBeFoundForTheConversionOfSimpleTypes ()
 
 convertInternallyConvertsANullSourceToAnEmptyString ()
 
 convertThrowsAnExceptionIfTargetTypeIsANonExistingClass ()
 
 convertThrowsAnExceptionIfAtLeastTwoConvertersAreRegisteredThatHandleTheConversionToTheSameInterface ()
 
 doMappingReturnsTheSourceIfItIsAlreadyTheDesiredTypeWithoutCallingAConverter ()
 
 findTypeConverterReturnsTheConverterFromThePropertyMappingConfiguration ()
 
 determineSourceTypeThrowsInvalidSourceExceptionForNonSupportedTypes ()
 
 findFirstEligibleTypeConverterInObjectHierarchyReturnsNullIfNoTypeConvertersExistForTheSourceType ()
 
 findFirstEligibleTypeConverterInObjectHierarchyFindsConverterFromStringToObject ()
 
 findFirstEligibleTypeConverterInObjectHierarchyReturnsConverterForParentClass ()
 
 findFirstEligibleTypeConverterInObjectHierarchyReturnsConverterForInterfaces ()
 
 defaultPropertyMappingConfiguration ()
 
 skipPropertiesConfiguration ()
 
 allowAllPropertiesExceptConfiguration ()
 
 allowAllPropertiesExceptWithSkipUnknownPropertiesConfiguration ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

array $coreExtensionsToLoad = ['extbase']
 
array $testExtensionsToLoad
 

Detailed Description

Definition at line 37 of file PropertyMapperTest.php.

Member Function Documentation

◆ allowAllPropertiesExceptConfiguration()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::allowAllPropertiesExceptConfiguration ( )

Definition at line 255 of file PropertyMapperTest.php.

◆ allowAllPropertiesExceptWithSkipUnknownPropertiesConfiguration()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::allowAllPropertiesExceptWithSkipUnknownPropertiesConfiguration ( )

Definition at line 277 of file PropertyMapperTest.php.

◆ convertCreatesAPropertyMappingConfigurationIfNotGiven()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::convertCreatesAPropertyMappingConfigurationIfNotGiven ( )

Definition at line 53 of file PropertyMapperTest.php.

◆ convertInternallyConvertsANullSourceToAnEmptyString()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::convertInternallyConvertsANullSourceToAnEmptyString ( )

Definition at line 91 of file PropertyMapperTest.php.

◆ convertReturnsNullIfDoMappingReturnsAnError()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::convertReturnsNullIfDoMappingReturnsAnError ( )

Definition at line 61 of file PropertyMapperTest.php.

◆ convertThrowsAnExceptionIfAtLeastTwoConvertersAreRegisteredThatHandleTheConversionToTheSameInterface()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::convertThrowsAnExceptionIfAtLeastTwoConvertersAreRegisteredThatHandleTheConversionToTheSameInterface ( )

Definition at line 109 of file PropertyMapperTest.php.

◆ convertThrowsAnExceptionIfNoTypeConverterCanBeFoundForTheConversionOfSimpleTypes()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::convertThrowsAnExceptionIfNoTypeConverterCanBeFoundForTheConversionOfSimpleTypes ( )

Definition at line 80 of file PropertyMapperTest.php.

◆ convertThrowsAnExceptionIfTargetTypeIsANonExistingClass()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::convertThrowsAnExceptionIfTargetTypeIsANonExistingClass ( )

Definition at line 98 of file PropertyMapperTest.php.

◆ convertThrowsATargetNotFoundException()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::convertThrowsATargetNotFoundException ( )

Definition at line 70 of file PropertyMapperTest.php.

◆ defaultPropertyMappingConfiguration()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::defaultPropertyMappingConfiguration ( )

Definition at line 211 of file PropertyMapperTest.php.

◆ determineSourceTypeThrowsInvalidSourceExceptionForNonSupportedTypes()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::determineSourceTypeThrowsInvalidSourceExceptionForNonSupportedTypes ( )

Definition at line 162 of file PropertyMapperTest.php.

◆ doMappingReturnsTheSourceIfItIsAlreadyTheDesiredTypeWithoutCallingAConverter()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::doMappingReturnsTheSourceIfItIsAlreadyTheDesiredTypeWithoutCallingAConverter ( )

Definition at line 127 of file PropertyMapperTest.php.

◆ findFirstEligibleTypeConverterInObjectHierarchyFindsConverterFromStringToObject()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::findFirstEligibleTypeConverterInObjectHierarchyFindsConverterFromStringToObject ( )

Definition at line 188 of file PropertyMapperTest.php.

◆ findFirstEligibleTypeConverterInObjectHierarchyReturnsConverterForInterfaces()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::findFirstEligibleTypeConverterInObjectHierarchyReturnsConverterForInterfaces ( )

Definition at line 202 of file PropertyMapperTest.php.

◆ findFirstEligibleTypeConverterInObjectHierarchyReturnsConverterForParentClass()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::findFirstEligibleTypeConverterInObjectHierarchyReturnsConverterForParentClass ( )

Definition at line 195 of file PropertyMapperTest.php.

◆ findFirstEligibleTypeConverterInObjectHierarchyReturnsNullIfNoTypeConvertersExistForTheSourceType()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::findFirstEligibleTypeConverterInObjectHierarchyReturnsNullIfNoTypeConvertersExistForTheSourceType ( )

Definition at line 177 of file PropertyMapperTest.php.

◆ findTypeConverterReturnsTheConverterFromThePropertyMappingConfiguration()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::findTypeConverterReturnsTheConverterFromThePropertyMappingConfiguration ( )

Definition at line 140 of file PropertyMapperTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::setUp ( )
protected

◆ skipPropertiesConfiguration()

TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::skipPropertiesConfiguration ( )

Definition at line 233 of file PropertyMapperTest.php.

Member Data Documentation

◆ $coreExtensionsToLoad

array TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::$coreExtensionsToLoad = ['extbase']
protected

Definition at line 39 of file PropertyMapperTest.php.

◆ $testExtensionsToLoad

array TYPO3\CMS\Extbase\Tests\Functional\Property\PropertyMapperTest::$testExtensionsToLoad
protected
Initial value:
= [
'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/',
'typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/type_converter_test/',
]

Definition at line 40 of file PropertyMapperTest.php.