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

Public Member Functions

 generateTokenRetrievesTokenOnce ()
 
 validateTokenRetrievesTokenOnce ()
 
 cleanMakesTokenInvalid ()
 
 cleanPersistsToken ()
 
 generateTokenFormForEmptyFormNameThrowsException ()
 
 generateTokenFormForEmptyActionNotThrowsException ()
 
 generateTokenFormForEmptyFormInstanceNameNotThrowsException ()
 
 generateTokenFormForOmittedActionAndFormInstanceNameNotThrowsException ()
 
 generateTokenReturns32CharacterHexToken ()
 
 generateTokenCalledTwoTimesWithSameParametersReturnsSameTokens ()
 
 validateTokenWithFourEmptyParametersNotThrowsException ()
 
 validateTokenWithTwoEmptyAndTwoMissingParametersNotThrowsException ()
 
 validateTokenWithDataFromGenerateTokenWithFormInstanceNameReturnsTrue ()
 
 validateTokenWithDataFromGenerateTokenWithMissingActionAndFormInstanceNameReturnsTrue ()
 
 validateTokenWithValidDataCalledTwoTimesReturnsTrueOnSecondCall ()
 
 validateTokenWithMismatchingTokenIdReturnsFalse ()
 
 validateTokenWithMismatchingFormNameReturnsFalse ()
 
 validateTokenWithMismatchingActionReturnsFalse ()
 
 validateTokenWithMismatchingFormInstanceNameReturnsFalse ()
 

Protected Member Functions

 setUp ()
 
- 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= '')
 

Protected Attributes

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

Detailed Description

Testcase

Definition at line 20 of file AbstractFormProtectionTest.php.

Member Function Documentation

cleanMakesTokenInvalid ( )
Test:

Definition at line 64 of file AbstractFormProtectionTest.php.

cleanPersistsToken ( )
generateTokenCalledTwoTimesWithSameParametersReturnsSameTokens ( )
Test:

Definition at line 132 of file AbstractFormProtectionTest.php.

generateTokenFormForEmptyActionNotThrowsException ( )
Test:

Definition at line 100 of file AbstractFormProtectionTest.php.

generateTokenFormForEmptyFormInstanceNameNotThrowsException ( )
Test:

Definition at line 108 of file AbstractFormProtectionTest.php.

generateTokenFormForEmptyFormNameThrowsException ( )
Test:

Definition at line 90 of file AbstractFormProtectionTest.php.

generateTokenFormForOmittedActionAndFormInstanceNameNotThrowsException ( )
Test:

Definition at line 116 of file AbstractFormProtectionTest.php.

generateTokenRetrievesTokenOnce ( )
generateTokenReturns32CharacterHexToken ( )
Test:

Definition at line 124 of file AbstractFormProtectionTest.php.

setUp ( )
protected

Definition at line 27 of file AbstractFormProtectionTest.php.

validateTokenRetrievesTokenOnce ( )
validateTokenWithDataFromGenerateTokenWithFormInstanceNameReturnsTrue ( )
Test:

Definition at line 159 of file AbstractFormProtectionTest.php.

validateTokenWithDataFromGenerateTokenWithMissingActionAndFormInstanceNameReturnsTrue ( )
Test:

Definition at line 170 of file AbstractFormProtectionTest.php.

validateTokenWithFourEmptyParametersNotThrowsException ( )
Test:

Definition at line 143 of file AbstractFormProtectionTest.php.

validateTokenWithMismatchingActionReturnsFalse ( )
Test:

Definition at line 216 of file AbstractFormProtectionTest.php.

validateTokenWithMismatchingFormInstanceNameReturnsFalse ( )
Test:

Definition at line 228 of file AbstractFormProtectionTest.php.

validateTokenWithMismatchingFormNameReturnsFalse ( )
Test:

Definition at line 204 of file AbstractFormProtectionTest.php.

validateTokenWithMismatchingTokenIdReturnsFalse ( )
Test:

Definition at line 192 of file AbstractFormProtectionTest.php.

validateTokenWithTwoEmptyAndTwoMissingParametersNotThrowsException ( )
Test:

Definition at line 151 of file AbstractFormProtectionTest.php.

validateTokenWithValidDataCalledTwoTimesReturnsTrueOnSecondCall ( )
Test:

Definition at line 179 of file AbstractFormProtectionTest.php.

Member Data Documentation