protected function PasswordPolicyExpirationTestCase::disableAdminExpiration in Password Policy 7
Disables "Admin (UID=1) password expires" setting.
3 calls to PasswordPolicyExpirationTestCase::disableAdminExpiration()
- PasswordPolicyExpirationTestCase::testAdminExpirationDisabled in tests/
password_policy_expiration.test - Tests "Admin (UID=1) password expires" being disabled (i.e., unchecked).
- PasswordPolicyExpirationTestCase::testWarningEmails in tests/
password_policy_expiration.test - Tests expiration warning e-mails.
- PasswordPolicyExpirationTestCase::testWarningEmailsTokens in tests/
password_policy_expiration.test - Tests tokens replacement in warning e-mails.
File
- tests/
password_policy_expiration.test, line 514 - Tests for Password policy module expiration functionality.
Class
- PasswordPolicyExpirationTestCase
- Tests of password expiration.
Code
protected function disableAdminExpiration() {
$admin = $this->admin;
$this
->drupalLogin($admin);
$edit = array(
'password_policy_admin' => FALSE,
);
$this
->drupalPost('admin/config/people/password_policy', $edit, t('Save configuration'));
$this
->drupalLogout();
}