TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

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

Protected Member Functions

 initializePropertyMappingConfiguration (array $trustedProperties)
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

Test case

Definition at line 30 of file MvcPropertyMappingConfigurationServiceTest.php.

Member Function Documentation

◆ dataProviderForgenerateTrustedPropertiesToken()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::dataProviderForgenerateTrustedPropertiesToken ( )

Data provider for generating the list of trusted properties

Returns
array

Definition at line 37 of file MvcPropertyMappingConfigurationServiceTest.php.

◆ dataProviderForgenerateTrustedPropertiesTokenWithUnallowedValues()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::dataProviderForgenerateTrustedPropertiesTokenWithUnallowedValues ( )

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

Returns
array

Definition at line 96 of file MvcPropertyMappingConfigurationServiceTest.php.

◆ generateTrustedPropertiesTokenGeneratesTheCorrectHashesInNormalOperation()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::generateTrustedPropertiesTokenGeneratesTheCorrectHashesInNormalOperation (   $input,
  $expected 
)
Test:
dataProviderForgenerateTrustedPropertiesToken

Definition at line 121 of file MvcPropertyMappingConfigurationServiceTest.php.

◆ generateTrustedPropertiesTokenThrowsExceptionInWrongCases()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::generateTrustedPropertiesTokenThrowsExceptionInWrongCases (   $input)
Test:
dataProviderForgenerateTrustedPropertiesTokenWithUnallowedValues

Definition at line 132 of file MvcPropertyMappingConfigurationServiceTest.php.

◆ initializePropertyMappingConfiguration()

◆ initializePropertyMappingConfigurationDoesNothingIfTrustedPropertiesAreNotSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::initializePropertyMappingConfigurationDoesNothingIfTrustedPropertiesAreNotSet ( )

◆ initializePropertyMappingConfigurationReturnsEarlyIfArgumentIsUnknown()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::initializePropertyMappingConfigurationReturnsEarlyIfArgumentIsUnknown ( )

◆ initializePropertyMappingConfigurationReturnsEarlyIfNoTrustedPropertiesAreSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::initializePropertyMappingConfigurationReturnsEarlyIfNoTrustedPropertiesAreSet ( )

◆ initializePropertyMappingConfigurationSetsAllowedFields()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::initializePropertyMappingConfigurationSetsAllowedFields ( )

◆ initializePropertyMappingConfigurationSetsAllowedFieldsRecursively()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::initializePropertyMappingConfigurationSetsAllowedFieldsRecursively ( )

◆ initializePropertyMappingConfigurationSetsCreationAllowedIfIdentityPropertyIsNotSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::initializePropertyMappingConfigurationSetsCreationAllowedIfIdentityPropertyIsNotSet ( )

◆ initializePropertyMappingConfigurationSetsModificationAllowedIfIdentityPropertyIsSet()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::initializePropertyMappingConfigurationSetsModificationAllowedIfIdentityPropertyIsSet ( )

◆ serializeAndHashFormFieldArrayWorks()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::serializeAndHashFormFieldArrayWorks ( )