public function LoginSecuritySoftBlockTest::testLogin in Login Security 7
Same name and namespace in other branches
- 6 login_security.test \LoginSecuritySoftBlockTest::testLogin()
Test login.
File
- ./
login_security.test, line 251 - Test the basic functions of the Login Security module.
Class
- LoginSecuritySoftBlockTest
- Test login_security soft blocks.
Code
public function testLogin() {
variable_set('login_security_user_wrong_count', 5);
$normal_user = $this
->drupalCreateUser(array(
'access content',
));
$this
->drupalLogin($normal_user);
$this
->assertNoText("You have used 1 out of 5 login attempts. After all 5 have been used, you will be unable to login.", t('Attempts available message displayed.'));
}