You are here

function LoginSecuritySoftBlockTest::testLogin in Login Security 6

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

File

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

Class

LoginSecuritySoftBlockTest

Code

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