TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

 $subject
 
 $backendUserMock
 
 $registryMock
 
- 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

Testcase

Definition at line 24 of file BackendFormProtectionTest.php.

Member Function Documentation

◆ failingTokenValidationInvokesFailingTokenClosure()

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::failingTokenValidationInvokesFailingTokenClosure ( )
Test:
1442592030

Definition at line 121 of file BackendFormProtectionTest.php.

◆ generateTokenReadsTokenFromSessionData()

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::generateTokenReadsTokenFromSessionData ( )
Test:

Definition at line 61 of file BackendFormProtectionTest.php.

◆ persistSessionTokenWritesTokenToSession()

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::persistSessionTokenWritesTokenToSession ( )
Test:

Definition at line 108 of file BackendFormProtectionTest.php.

◆ restoreSessionTokenFromRegistryThrowsExceptionIfSessionTokenIsEmpty()

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::restoreSessionTokenFromRegistryThrowsExceptionIfSessionTokenIsEmpty ( )
Test:

Definition at line 100 of file BackendFormProtectionTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::setUp ( )
protected

Set up

Definition at line 44 of file BackendFormProtectionTest.php.

◆ tokenFromSessionDataIsAvailableForValidateToken()

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::tokenFromSessionDataIsAvailableForValidateToken ( )

Member Data Documentation

◆ $backendUserMock

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::$backendUserMock
protected

Definition at line 34 of file BackendFormProtectionTest.php.

◆ $registryMock

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::$registryMock
protected

Definition at line 39 of file BackendFormProtectionTest.php.

◆ $subject

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::$subject
protected

Definition at line 29 of file BackendFormProtectionTest.php.