public function UsernameEnumerationPreventionTestCase::getResetMail in Username Enumeration Prevention 7
Retrieves password reset email.
2 calls to UsernameEnumerationPreventionTestCase::getResetMail()
- UsernameEnumerationPreventionTestCase::testPasswordResetActive in tests/
simpletest/ username_enumeration_prevention.test - Ensure the password reset form sends an email for valid users.
- UsernameEnumerationPreventionTestCase::testPasswordResetBlocked in tests/
simpletest/ username_enumeration_prevention.test - Ensure the password reset form does not actually work for blocked users.
File
- tests/
simpletest/ username_enumeration_prevention.test, line 100 - Test case for enumerating password reset form.
Class
- UsernameEnumerationPreventionTestCase
- The UsernameEnumerationPreventionTestCase tests functionality of this module.
Code
public function getResetMail() {
// Assume the most recent email.
$_emails = $this
->drupalGetMails();
$email = end($_emails);
return $email;
}