public function GALoginHotpSetupPluginTest::setUp in Google Authenticator login 8
Overrides TfaTestBase::setUp
File
- tests/
src/ Functional/ GALoginHotpSetupPluginTest.php, line 52
Class
- GALoginHotpSetupPluginTest
- Class GALoginHotpSetupPluginTest.
Namespace
Drupal\Tests\ga_login\FunctionalCode
public function setUp() {
parent::setUp();
$this
->canEnableValidationPlugin($this->validationPluginId);
$this->userAccount = $this
->drupalCreateUser([
'setup own tfa',
'disable own tfa',
]);
$this->setupPlugin = \Drupal::service('plugin.manager.tfa.setup')
->createInstance($this->validationPluginId . '_setup', [
'uid' => $this->userAccount
->id(),
]);
$this
->drupalLogin($this->userAccount);
}