You are here

protected function DrupalWebTestCase::verboseEmail in Drupal 7

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 3972

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>');
  }
}