‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest:

Public Member Functions

 generateTrustedPropertiesTokenGeneratesTheCorrectHashesInNormalOperation ($input, $expected)
 
 generateTrustedPropertiesTokenThrowsExceptionInWrongCases (array $input, int $expectExceptionCode)
 
 encodeAndHashFormFieldArrayWorks ()
 
 initializePropertyMappingConfigurationDoesNothingIfTrustedPropertiesAreNotSet ()
 
 initializePropertyMappingConfigurationThrowsBadRequestExceptionOnInvalidHmac ()
 
 initializePropertyMappingConfigurationWithNonDecodableTrustedPropertiesThrowsException ()
 
 initializePropertyMappingConfigurationWithOutdatedTrustedPropertiesThrowsException ()
 
 initializePropertyMappingConfigurationReturnsEarlyIfNoTrustedPropertiesAreSet ()
 
 initializePropertyMappingConfigurationReturnsEarlyIfArgumentIsUnknown ()
 
 initializePropertyMappingConfigurationSetsModificationAllowedIfIdentityPropertyIsSet ()
 
 initializePropertyMappingConfigurationSetsCreationAllowedIfIdentityPropertyIsNotSet ()
 
 initializePropertyMappingConfigurationSetsAllowedFields ()
 
 initializePropertyMappingConfigurationSetsAllowedFieldsRecursively ()
 

Static Public Member Functions

static dataProviderForGenerateTrustedPropertiesToken ()
 
static dataProviderForGenerateTrustedPropertiesTokenWithUnallowedValues ()
 

Protected Member Functions

 initializePropertyMappingConfiguration (array $trustedProperties)
 

Detailed Description

Member Function Documentation

◆ dataProviderForGenerateTrustedPropertiesToken()

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

Data provider for generating the list of trusted properties

Definition at line 41 of file MvcPropertyMappingConfigurationServiceTest.php.

◆ dataProviderForGenerateTrustedPropertiesTokenWithUnallowedValues()

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

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

Definition at line 99 of file MvcPropertyMappingConfigurationServiceTest.php.

◆ encodeAndHashFormFieldArrayWorks()

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

Definition at line 150 of file MvcPropertyMappingConfigurationServiceTest.php.

References $GLOBALS.

◆ generateTrustedPropertiesTokenGeneratesTheCorrectHashesInNormalOperation()

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

◆ generateTrustedPropertiesTokenThrowsExceptionInWrongCases()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Controller\MvcPropertyMappingConfigurationServiceTest::generateTrustedPropertiesTokenThrowsExceptionInWrongCases ( array  $input,
int  $expectExceptionCode 
)

◆ 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()

◆ initializePropertyMappingConfigurationSetsModificationAllowedIfIdentityPropertyIsSet()

◆ initializePropertyMappingConfigurationThrowsBadRequestExceptionOnInvalidHmac()

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

◆ initializePropertyMappingConfigurationWithNonDecodableTrustedPropertiesThrowsException()

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

Definition at line 201 of file MvcPropertyMappingConfigurationServiceTest.php.

References $GLOBALS.

◆ initializePropertyMappingConfigurationWithOutdatedTrustedPropertiesThrowsException()

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

Definition at line 221 of file MvcPropertyMappingConfigurationServiceTest.php.

References $GLOBALS.