‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Acceptance\Helper\PasswordLogin Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Acceptance\Helper\PasswordLogin:

Public Member Functions

 useExistingSession (string $role, float|int $waitTime=0.5)
 

Protected Attributes

array $config
 

Private Member Functions

 loadSession (string $role)
 
 getWebDriver ()
 

Detailed Description

Helper class to log in backend users and load backend.

Definition at line 28 of file PasswordLogin.php.

Member Function Documentation

◆ getWebDriver()

TYPO3\CMS\Core\Tests\Acceptance\Helper\PasswordLogin::getWebDriver ( )
private

◆ loadSession()

TYPO3\CMS\Core\Tests\Acceptance\Helper\PasswordLogin::loadSession ( string  $role)
private

◆ useExistingSession()

TYPO3\CMS\Core\Tests\Acceptance\Helper\PasswordLogin::useExistingSession ( string  $role,
float|int  $waitTime = 0.5 
)

Log in a backend user (or use a session snapshot) ato ensure a session cookie is set. Afterwards the backend entrypoint is loaded.

Use this action to change the backend user and avoid switching between users in the backend module "Backend Users" as this will change the user session ID and make it useless for subsequent calls of this action.

Parameters
string$role‪The backend user who should be logged in.
int | float$waitTime‪Used waitTime in seconds between single steps. Default: 0.5

Definition at line 47 of file PasswordLogin.php.

References TYPO3\CMS\Core\Tests\Acceptance\Helper\PasswordLogin\getWebDriver(), and TYPO3\CMS\Core\Tests\Acceptance\Helper\PasswordLogin\loadSession().

Member Data Documentation

◆ $config

array TYPO3\CMS\Core\Tests\Acceptance\Helper\PasswordLogin::$config
protected
Initial value:
= [
'passwords' => [],
]

Definition at line 33 of file PasswordLogin.php.