TYPO3 CMS  TYPO3_7-6
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, $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)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Additional Inherited Members

- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 27 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 34 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 94 of file MvcPropertyMappingConfigurationServiceTest.php.

◆ generateTrustedPropertiesTokenGeneratesTheCorrectHashesInNormalOperation()

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

Definition at line 120 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 ( )