You are here

public function PasswordPolicyTestCase::testLoadPolicy in Password Policy 7.2

Tests the loading of CTools-based policies.

File

./password_policy.test, line 139
Unit tests for Password policy module.

Class

PasswordPolicyTestCase
Basic test case for creating and executing Password Policies.

Code

public function testLoadPolicy() {

  // Check for a policy contained in the Password Policy Test module.
  $policies = PasswordPolicy::enabledPolicies();
  $this
    ->assertTrue(array_key_exists('Test policy', $policies), 'Test policy exists when loaded via CTools.');
}