protected function WebTestBase::verboseEmail

Outputs to verbose the most recent $count emails sent.

Parameters

$count: Optional number of emails to output.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 3281
Definition of Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function verboseEmail($count = 1) {
  $mails = $this
    ->drupalGetMails();
  for ($i = count($mails) - 1; $i >= count($mails) - $count && $i >= 0; $i--) {
    $mail = $mails[$i];
    $this
      ->verbose(t('Email:') . '<pre>' . print_r($mail, TRUE) . '</pre>');
  }
}