You are here

public function LoginSecurityUserBlockingTest::testLogin in Login Security 7

Same name and namespace in other branches
  1. 6 login_security.test \LoginSecurityUserBlockingTest::testLogin()

Check if login is broken somewhere.

File

./login_security.test, line 88
Test the basic functions of the Login Security module.

Class

LoginSecurityUserBlockingTest
Test login_security user blocking.

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.'));
}