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

Public Member Functions

 generateTokenReadsTokenFromSessionData ()
 
 tokenFromSessionDataIsAvailableForValidateToken ()
 
 restoreSessionTokenFromRegistryThrowsExceptionIfSessionTokenIsEmpty ()
 
 persistSessionTokenWritesTokenToSession ()
 
 failingTokenValidationInvokesFailingTokenClosure ()
 

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
 
 $backendUserMock
 
 $registryMock
 
- 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 24 of file BackendFormProtectionTest.php.

Member Function Documentation

failingTokenValidationInvokesFailingTokenClosure ( )
Test:

Definition at line 121 of file BackendFormProtectionTest.php.

generateTokenReadsTokenFromSessionData ( )
Test:

Definition at line 61 of file BackendFormProtectionTest.php.

persistSessionTokenWritesTokenToSession ( )
Test:

Definition at line 110 of file BackendFormProtectionTest.php.

restoreSessionTokenFromRegistryThrowsExceptionIfSessionTokenIsEmpty ( )
Test:

Definition at line 99 of file BackendFormProtectionTest.php.

setUp ( )
protected

Set up

Definition at line 44 of file BackendFormProtectionTest.php.

tokenFromSessionDataIsAvailableForValidateToken ( )
Test:

Definition at line 74 of file BackendFormProtectionTest.php.

References GeneralUtility\hmac().

Member Data Documentation

$backendUserMock
protected

Definition at line 34 of file BackendFormProtectionTest.php.

$registryMock
protected

Definition at line 39 of file BackendFormProtectionTest.php.

$subject
protected

Definition at line 29 of file BackendFormProtectionTest.php.