You are here

protected function PasswordPolicyAdministratorPasswordChangeTestCase::createNonAdmin in Password Policy 7

Creates non-administrator user for testing.

The non-administrator is given a dummy role so password policies can be applied exclusively to the non-administrator.

1 call to PasswordPolicyAdministratorPasswordChangeTestCase::createNonAdmin()
PasswordPolicyAdministratorPasswordChangeTestCase::setUp in tests/password_policy.test
Set up the test.

File

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

Class

PasswordPolicyAdministratorPasswordChangeTestCase
Tests administrator changing password of another user.

Code

protected function createNonAdmin() {
  $this->nonadmin = $this
    ->drupalCreateUser();
}