‪TYPO3CMS  11.5
TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest:

Public Member Functions

 checkRedirectRedirectsIfLoginIsInProgressAndUserWasFound ()
 
 checkRedirectDoesNotRedirectIfNoUserIsFound ()
 

Protected Member Functions

 setUp ()
 
 prophesizeFormProtection ()
 

Protected Attributes

bool $resetSingletonInstances = true
 
LoginController MockObject AccessibleObjectInterface $loginControllerMock
 

Static Protected Attributes

static bool $alreadySetUp = false
 

Detailed Description

Test case

Definition at line 35 of file LoginControllerTest.php.

Member Function Documentation

◆ checkRedirectDoesNotRedirectIfNoUserIsFound()

TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest::checkRedirectDoesNotRedirectIfNoUserIsFound ( )
Test:

Definition at line 103 of file LoginControllerTest.php.

References $GLOBALS.

◆ checkRedirectRedirectsIfLoginIsInProgressAndUserWasFound()

TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest::checkRedirectRedirectsIfLoginIsInProgressAndUserWasFound ( )

◆ prophesizeFormProtection()

TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest::prophesizeFormProtection ( )
protected

FormProtectionFactory has an internal static instance cache we need to work around here

Definition at line 127 of file LoginControllerTest.php.

Referenced by TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest\checkRedirectRedirectsIfLoginIsInProgressAndUserWasFound().

◆ setUp()

TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest::setUp ( )
protected
Exceptions

Definition at line 55 of file LoginControllerTest.php.

Member Data Documentation

◆ $alreadySetUp

bool TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest::$alreadySetUp = false
staticprotected

Definition at line 50 of file LoginControllerTest.php.

◆ $loginControllerMock

LoginController MockObject AccessibleObjectInterface TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest::$loginControllerMock
protected

Definition at line 44 of file LoginControllerTest.php.

◆ $resetSingletonInstances

bool TYPO3\CMS\Backend\Tests\Unit\Controller\LoginControllerTest::$resetSingletonInstances = true
protected

Reset singletons created by subject

Definition at line 40 of file LoginControllerTest.php.