1 backdrop_web_test_case.php protected BackdropWebTestCase::verboseEmail($count = 1)

Outputs to verbose the most recent $count emails sent.

Parameters

$count: Optional number of emails to output.

File

core/modules/simpletest/backdrop_web_test_case.php, line 3933

Class

BackdropWebTestCase
Test case for typical Backdrop tests.

Code

protected function verboseEmail($count = 1) {
  $mails = $this->backdropGetMails();
  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>');
  }
}