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

Public Member Functions

 getForNotExistingClassThrowsException ()
 
 getForClassThatIsNoFormProtectionSubclassThrowsException ()
 
 getForTypeBackEndWithExistingBackEndReturnsBackEndFormProtection ()
 
 getForTypeBackEndCalledTwoTimesReturnsTheSameInstance ()
 
 getForTypeInstallToolReturnsInstallToolFormProtection ()
 
 getForTypeInstallToolCalledTwoTimesReturnsTheSameInstance ()
 
 getForTypesInstallToolAndDisabledReturnsDifferentInstances ()
 
 setSetsInstanceForType ()
 
 setNotSetsInstanceForOtherType ()
 
 createValidationErrorMessageAddsErrorFlashMessageButNotInSessionInAjaxRequest ()
 
 enqueueAjaxFlashMessageCallback (\TYPO3\CMS\Core\Messaging\FlashMessage $flashMessage)
 

Protected Member Functions

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

Additional Inherited Members

- 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 23 of file FormProtectionFactoryTest.php.

Member Function Documentation

◆ createValidationErrorMessageAddsErrorFlashMessageButNotInSessionInAjaxRequest()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::createValidationErrorMessageAddsErrorFlashMessageButNotInSessionInAjaxRequest ( )
Test:

Definition at line 141 of file FormProtectionFactoryTest.php.

◆ enqueueAjaxFlashMessageCallback()

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

Definition at line 164 of file FormProtectionFactoryTest.php.

◆ getForClassThatIsNoFormProtectionSubclassThrowsException()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::getForClassThatIsNoFormProtectionSubclassThrowsException ( )

◆ getForNotExistingClassThrowsException()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::getForNotExistingClassThrowsException ( )

◆ getForTypeBackEndCalledTwoTimesReturnsTheSameInstance()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::getForTypeBackEndCalledTwoTimesReturnsTheSameInstance ( )

◆ getForTypeBackEndWithExistingBackEndReturnsBackEndFormProtection()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::getForTypeBackEndWithExistingBackEndReturnsBackEndFormProtection ( )

◆ getForTypeInstallToolCalledTwoTimesReturnsTheSameInstance()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::getForTypeInstallToolCalledTwoTimesReturnsTheSameInstance ( )

◆ getForTypeInstallToolReturnsInstallToolFormProtection()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::getForTypeInstallToolReturnsInstallToolFormProtection ( )

◆ getForTypesInstallToolAndDisabledReturnsDifferentInstances()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::getForTypesInstallToolAndDisabledReturnsDifferentInstances ( )

◆ setNotSetsInstanceForOtherType()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::setNotSetsInstanceForOtherType ( )

◆ setSetsInstanceForType()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::setSetsInstanceForType ( )

◆ setUp()

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

Definition at line 25 of file FormProtectionFactoryTest.php.

◆ tearDown()

TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::tearDown ( )
protected