You are here

public function PasswordPolicyAdministratorPasswordChangeTestCase::testAdministratorPasswordChange in Password Policy 7

Tests administrator changing password of another user.

File

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

Class

PasswordPolicyAdministratorPasswordChangeTestCase
Tests administrator changing password of another user.

Code

public function testAdministratorPasswordChange() {
  $admin = $this->admin;
  $this
    ->drupalLogin($admin);
  $this
    ->setPolicyThatAppliesToNewRole();
  $this
    ->attemptNonAdminPasswordChanges();
  $this
    ->attemptAdminPasswordChanges();
}