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

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

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

Member Function Documentation

createValidationErrorMessageAddsErrorFlashMessageButNotInSessionInAjaxRequest ( )
Test:

Definition at line 141 of file FormProtectionFactoryTest.php.

enqueueAjaxFlashMessageCallback ( \TYPO3\CMS\Core\Messaging\FlashMessage  $flashMessage)
Parameters
\TYPO3\CMS\Core\Messaging\FlashMessage$flashMessage

Definition at line 158 of file FormProtectionFactoryTest.php.

getForClassThatIsNoFormProtectionSubclassThrowsException ( )
Test:

Definition at line 48 of file FormProtectionFactoryTest.php.

References FormProtectionFactory\get().

getForNotExistingClassThrowsException ( )
Test:

Definition at line 37 of file FormProtectionFactoryTest.php.

References FormProtectionFactory\get().

getForTypeBackEndCalledTwoTimesReturnsTheSameInstance ( )
Test:

Definition at line 76 of file FormProtectionFactoryTest.php.

References BaseTestCase\getUniqueId().

getForTypeBackEndWithExistingBackEndReturnsBackEndFormProtection ( )
getForTypeInstallToolCalledTwoTimesReturnsTheSameInstance ( )
Test:

Definition at line 102 of file FormProtectionFactoryTest.php.

References FormProtectionFactory\get().

getForTypeInstallToolReturnsInstallToolFormProtection ( )
Test:

Definition at line 94 of file FormProtectionFactoryTest.php.

References FormProtectionFactory\get().

getForTypesInstallToolAndDisabledReturnsDifferentInstances ( )
Test:

Definition at line 110 of file FormProtectionFactoryTest.php.

References FormProtectionFactory\get().

setNotSetsInstanceForOtherType ( )
setSetsInstanceForType ( )
tearDown ( )
protected