public function TfaTestCase::testReady in Two-factor Authentication (TFA) 7.2
Test tfa_test_is_ready.
File
- tests/
tfa.test, line 285 - Drupal test cases for TFA.
Class
- TfaTestCase
- Tests the functionality of the TFA module.
Code
public function testReady() {
variable_set('tfa_validate_plugin', 'tfa_test_send');
$account = $this->web_user;
// Disable ready.
variable_set('tfa_test_is_ready', FALSE);
$edit = array(
'name' => $account->name,
'pass' => $account->pass_raw,
);
$this
->drupalPost('user/login', $edit, 'Log in');
$this
->assertLink('Log out', 0, 'Authenticated');
$this
->drupalLogout();
}