function DrupalWebTestCase::verboseEmail
Outputs to verbose the most recent $count emails sent.
Parameters
$count: Optional number of emails to output.
2 calls to DrupalWebTestCase::verboseEmail()
- TriggerActionTestCase::assertSystemEmailTokenReplacement in modules/
trigger/ trigger.test - Asserts correct token replacement for the given trigger and account.
- TriggerUserActionTestCase::testUserActionAssignmentExecution in modules/
trigger/ trigger.test - Tests user action assignment and execution.
File
-
modules/
simpletest/ drupal_web_test_case.php, line 4041
Class
- DrupalWebTestCase
- Test case for typical Drupal tests.
Code
protected function verboseEmail($count = 1) {
$mails = $this->drupalGetMails();
for ($i = sizeof($mails) - 1; $i >= sizeof($mails) - $count && $i >= 0; $i--) {
$mail = $mails[$i];
$this->verbose(t('Email:') . '<pre>' . print_r($mail, TRUE) . '</pre>');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.