‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest:

Public Member Functions

 throwsExceptionOnDisallowedAlogTest ()
 
 throwsExceptionOnInvalidTotpLengthTest ()
 
 generateTotpTest (string $expectedTotp, array $arguments)
 
 verifyTotpTest (string $totp, array $arguments)
 
 verifyTotpWithGracePeriodTest ()
 
 getTotpAuthUrlTest (array $constructorArguments, array $methodArguments, string $expected)
 
 generateEncodedSecretTest ()
 

Static Public Member Functions

static totpDataProvider ()
 
static getTotpAuthUrlTestDataProvider ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

string $secret
 
int $timestamp = 1613652061
 
bool $resetSingletonInstances = true
 

Detailed Description

Definition at line 29 of file TotpTest.php.

Member Function Documentation

◆ generateEncodedSecretTest()

TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::generateEncodedSecretTest ( )

◆ generateTotpTest()

TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::generateTotpTest ( string  $expectedTotp,
array  $arguments 
)

Definition at line 60 of file TotpTest.php.

◆ getTotpAuthUrlTest()

TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::getTotpAuthUrlTest ( array  $constructorArguments,
array  $methodArguments,
string  $expected 
)

Definition at line 120 of file TotpTest.php.

◆ getTotpAuthUrlTestDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::getTotpAuthUrlTestDataProvider ( )
static

Definition at line 127 of file TotpTest.php.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::setUp ( )
protected

Definition at line 35 of file TotpTest.php.

◆ throwsExceptionOnDisallowedAlogTest()

TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::throwsExceptionOnDisallowedAlogTest ( )

Definition at line 43 of file TotpTest.php.

◆ throwsExceptionOnInvalidTotpLengthTest()

TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::throwsExceptionOnInvalidTotpLengthTest ( )

Definition at line 51 of file TotpTest.php.

◆ totpDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::totpDataProvider ( )
static

Definition at line 82 of file TotpTest.php.

◆ verifyTotpTest()

TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::verifyTotpTest ( string  $totp,
array  $arguments 
)

Definition at line 72 of file TotpTest.php.

◆ verifyTotpWithGracePeriodTest()

TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::verifyTotpWithGracePeriodTest ( )

Definition at line 92 of file TotpTest.php.

Member Data Documentation

◆ $resetSingletonInstances

bool TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::$resetSingletonInstances = true
protected

Definition at line 33 of file TotpTest.php.

◆ $secret

string TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::$secret
protected

Definition at line 31 of file TotpTest.php.

◆ $timestamp

int TYPO3\CMS\Core\Tests\Unit\Authentication\Mfa\Provider\TotpTest::$timestamp = 1613652061
protected

Definition at line 32 of file TotpTest.php.