TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
MvcPropertyMappingConfigurationServiceTest Class Reference
Inheritance diagram for MvcPropertyMappingConfigurationServiceTest:
UnitTestCase BaseTestCase

Public Member Functions

 dataProviderForgenerateTrustedPropertiesToken ()
 
 dataProviderForgenerateTrustedPropertiesTokenWithUnallowedValues ()
 
 generateTrustedPropertiesTokenGeneratesTheCorrectHashesInNormalOperation ($input, $expected)
 
 generateTrustedPropertiesTokenThrowsExceptionInWrongCases ($input, $expectExceptionCode)
 
 serializeAndHashFormFieldArrayWorks ()
 
 initializePropertyMappingConfigurationDoesNothingIfTrustedPropertiesAreNotSet ()
 
 initializePropertyMappingConfigurationReturnsEarlyIfNoTrustedPropertiesAreSet ()
 
 initializePropertyMappingConfigurationReturnsEarlyIfArgumentIsUnknown ()
 
 initializePropertyMappingConfigurationSetsModificationAllowedIfIdentityPropertyIsSet ()
 
 initializePropertyMappingConfigurationSetsCreationAllowedIfIdentityPropertyIsNotSet ()
 
 initializePropertyMappingConfigurationSetsAllowedFields ()
 
 initializePropertyMappingConfigurationSetsAllowedFieldsRecursively ()
 

Protected Member Functions

 initializePropertyMappingConfiguration (array $trustedProperties)
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Additional Inherited Members

- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 28 of file MvcPropertyMappingConfigurationServiceTest.php.

Member Function Documentation

dataProviderForgenerateTrustedPropertiesToken ( )

Data provider for generating the list of trusted properties

Returns
array

Definition at line 35 of file MvcPropertyMappingConfigurationServiceTest.php.

dataProviderForgenerateTrustedPropertiesTokenWithUnallowedValues ( )

Data Provider for invalid values in generating the list of trusted properties, which should result in an exception

Returns
array

Definition at line 95 of file MvcPropertyMappingConfigurationServiceTest.php.

generateTrustedPropertiesTokenGeneratesTheCorrectHashesInNormalOperation (   $input,
  $expected 
)
Test:
dataProviderForgenerateTrustedPropertiesToken

Definition at line 126 of file MvcPropertyMappingConfigurationServiceTest.php.

generateTrustedPropertiesTokenThrowsExceptionInWrongCases (   $input,
  $expectExceptionCode 
)
Parameters
$input
$expectExceptionCode
Test:
dataProviderForgenerateTrustedPropertiesTokenWithUnallowedValues

Definition at line 141 of file MvcPropertyMappingConfigurationServiceTest.php.

initializePropertyMappingConfigurationDoesNothingIfTrustedPropertiesAreNotSet ( )
initializePropertyMappingConfigurationReturnsEarlyIfArgumentIsUnknown ( )
initializePropertyMappingConfigurationReturnsEarlyIfNoTrustedPropertiesAreSet ( )
initializePropertyMappingConfigurationSetsAllowedFields ( )
initializePropertyMappingConfigurationSetsAllowedFieldsRecursively ( )
initializePropertyMappingConfigurationSetsCreationAllowedIfIdentityPropertyIsNotSet ( )
initializePropertyMappingConfigurationSetsModificationAllowedIfIdentityPropertyIsSet ( )
serializeAndHashFormFieldArrayWorks ( )