TYPO3 CMS  TYPO3_6-2
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

 setUp ()
 
 tearDown ()
 
 getBackendUserReturnsInstanceOfBackendUserAuthenticationClass ()
 
 retrieveTokenReadsTokenFromSessionData ()
 
 tokenFromSessionDataIsAvailableForValidateToken ()
 
 persistSessionTokenWritesTokenToSession ()
 
 enqueueFlashMessageCallback (\TYPO3\CMS\Core\Messaging\FlashMessage $flashMessage)
 
 enqueueAjaxFlashMessageCallback (\TYPO3\CMS\Core\Messaging\FlashMessage $flashMessage)
 

Protected Member Functions

 getBackendUser ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Protected Attributes

 $subject
 
 $singletonInstances
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Testcase

Author
Oliver Klee typo3.nosp@m.-cod.nosp@m.ing@o.nosp@m.live.nosp@m.rklee.nosp@m..de

Definition at line 22 of file BackendFormProtectionTest.php.

Member Function Documentation

◆ enqueueAjaxFlashMessageCallback()

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::enqueueAjaxFlashMessageCallback ( \TYPO3\CMS\Core\Messaging\FlashMessage  $flashMessage)
Parameters
\TYPO3\CMS\Core\Messaging\FlashMessage$flashMessage

Definition at line 232 of file BackendFormProtectionTest.php.

◆ enqueueFlashMessageCallback()

TYPO3\CMS\Core\Tests\Unit\FormProtection\BackendFormProtectionTest::enqueueFlashMessageCallback ( \TYPO3\CMS\Core\Messaging\FlashMessage  $flashMessage)
Parameters
\TYPO3\CMS\Core\Messaging\FlashMessage$flashMessage

Definition at line 190 of file BackendFormProtectionTest.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\setSingletonInstance().

◆ getBackendUser()

◆ getBackendUserReturnsInstanceOfBackendUserAuthenticationClass()

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

◆ persistSessionTokenWritesTokenToSession()

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

◆ retrieveTokenReadsTokenFromSessionData()

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

◆ setUp()

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

◆ tearDown()

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

◆ tokenFromSessionDataIsAvailableForValidateToken()

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

Member Data Documentation

◆ $singletonInstances

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

Backup of current singleton instances

Definition at line 32 of file BackendFormProtectionTest.php.

◆ $subject

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

Definition at line 27 of file BackendFormProtectionTest.php.