You are here

protected function PasswordPolicyAuthmapTestCase::setTestPolicy in Password Policy 7

Sets test policy.

Has Policy Maker user create and enable a test policy.

1 call to PasswordPolicyAuthmapTestCase::setTestPolicy()
PasswordPolicyAuthmapTestCase::setUp in tests/password_policy_authmap.test
Set up the test.

File

tests/password_policy_authmap.test, line 115
Functional tests for excluding authentication modules from policies.

Class

PasswordPolicyAuthmapTestCase
Tests of basic Password Policy constraints.

Code

protected function setTestPolicy() {
  $policy_maker = $this->policyMaker;
  $this
    ->drupalLogin($policy_maker);
  $name = $this
    ->createTestPolicy();
  $this
    ->enablePolicy($name);
  $this
    ->drupalLogout();
}