You are here

public function PasswordPolicyPasswordLengthRestrictionTestCase::testOverlongPasswordSubmission in Password Policy 7

Same name and namespace in other branches
  1. 7.2 password_policy.test \PasswordPolicyPasswordLengthRestrictionTestCase::testOverlongPasswordSubmission()

Tests module response to submission of an overlong password.

File

tests/password_policy.test, line 1009
Functional tests for Password policy module.

Class

PasswordPolicyPasswordLengthRestrictionTestCase
Tests of restriction on password length.

Code

public function testOverlongPasswordSubmission() {
  $admin = $this->admin;
  $this
    ->drupalLogin($admin);
  $this
    ->setPolicyThatAppliesToAuthenticatedUser();
  $this
    ->submitOverlongPassword();
  $this
    ->submitNotOverlongPassword();
}