protected function PasswordPolicyExpirationTestCase::assertNoMail in Password Policy 7
Asserts that no e-mail has been sent.
Specifically, asserts that no e-mail has been sent since the e-mails collected during the test were last cleared.
2 calls to PasswordPolicyExpirationTestCase::assertNoMail()
- PasswordPolicyExpirationTestCase::testWarningEmails in tests/
password_policy_expiration.test - Tests expiration warning e-mails.
- PasswordPolicyExpirationTestCase::testWarningEmailsDisabled in tests/
password_policy_expiration.test - Tests warning e-mails not sent when they are disabled.
File
- tests/
password_policy_expiration.test, line 588 - Tests for Password policy module expiration functionality.
Class
- PasswordPolicyExpirationTestCase
- Tests of password expiration.
Code
protected function assertNoMail($message) {
$captured_emails = variable_get('drupal_test_email_collector', array());
$this
->assertTrue(empty($captured_emails), $message);
}