protected function DrupalWebTestCase::verboseEmail

7.x drupal_web_test_case.php protected DrupalWebTestCase::verboseEmail($count = 1)

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 drupal/modules/trigger/trigger.test
Asserts correct token replacement for the given trigger and account.
TriggerUserActionTestCase::testUserActionAssignmentExecution in drupal/modules/trigger/trigger.test
Tests user action assignment and execution.

File

drupal/modules/simpletest/drupal_web_test_case.php, line 3631

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