You are here

public function TfaRecoveryCodePluginTest::testRecoveryCodeOverviewExists in Two-factor Authentication (TFA) 8

Check that recovery code plugin appear on the user overview page.

File

tests/src/Functional/TfaRecoveryCodePluginTest.php, line 100

Class

TfaRecoveryCodePluginTest
Class TfaRecoveryCodeSetupPluginTest.

Namespace

Drupal\Tests\tfa\Functional

Code

public function testRecoveryCodeOverviewExists() {
  $this
    ->drupalLogin($this->userAccount);
  $this
    ->drupalGet('user/' . $this->userAccount
    ->id() . '/security/tfa');
  $assert = $this
    ->assertSession();
  $assert
    ->statusCodeEquals(200);
  $assert
    ->pageTextContains('Recovery Codes');
}