‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest:

Public Member Functions

 createForTypeReturnsDisabledIfInvalidTypeIsGiven ()
 
 createForTypeReturnsDisabledIfInvalidTypeIsGivenAndSameInstanceIfDisabledIsGivenLaterOn ()
 
 createForTypeReturnsDisabledForValidTypeButWithoutValidGlobalArguments ()
 
 createForTypeAlwaysReturnsInstallToolRegardlessOfRequirementsIfRequested ()
 
 createForTypeReturnsDisabledIfBackendUserIsNotAvailable ()
 
 createForTypeReturnsBackendIfBackendUserIsLoggedIn ()
 
 createForTypeReturnsTheSameInstanceEvenThoughUserWasLoggedInLaterOn ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

FormProtectionFactory $subject
 
FrontendInterface $runtimeCacheMock
 

Detailed Description

Definition at line 38 of file FormProtectionFactoryTest.php.

Member Function Documentation

◆ createForTypeAlwaysReturnsInstallToolRegardlessOfRequirementsIfRequested()

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

Definition at line 92 of file FormProtectionFactoryTest.php.

◆ createForTypeReturnsBackendIfBackendUserIsLoggedIn()

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

Definition at line 109 of file FormProtectionFactoryTest.php.

References $GLOBALS.

◆ createForTypeReturnsDisabledForValidTypeButWithoutValidGlobalArguments()

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

Definition at line 83 of file FormProtectionFactoryTest.php.

◆ createForTypeReturnsDisabledIfBackendUserIsNotAvailable()

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

Definition at line 99 of file FormProtectionFactoryTest.php.

References $GLOBALS.

◆ createForTypeReturnsDisabledIfInvalidTypeIsGiven()

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

Definition at line 66 of file FormProtectionFactoryTest.php.

◆ createForTypeReturnsDisabledIfInvalidTypeIsGivenAndSameInstanceIfDisabledIsGivenLaterOn()

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

Definition at line 73 of file FormProtectionFactoryTest.php.

◆ createForTypeReturnsTheSameInstanceEvenThoughUserWasLoggedInLaterOn()

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

Definition at line 120 of file FormProtectionFactoryTest.php.

References $GLOBALS.

◆ setUp()

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

Definition at line 43 of file FormProtectionFactoryTest.php.

◆ tearDown()

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

Definition at line 59 of file FormProtectionFactoryTest.php.

Member Data Documentation

◆ $runtimeCacheMock

FrontendInterface TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::$runtimeCacheMock
protected

Definition at line 41 of file FormProtectionFactoryTest.php.

◆ $subject

FormProtectionFactory TYPO3\CMS\Core\Tests\Unit\FormProtection\FormProtectionFactoryTest::$subject
protected

Definition at line 40 of file FormProtectionFactoryTest.php.