protected function WebTestBase::verboseEmail in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/WebTestBase.php \Drupal\simpletest\WebTestBase::verboseEmail()
Outputs to verbose the most recent $count emails sent.
Parameters
$count: Optional number of emails to output.
File
- core/
modules/ simpletest/ src/ WebTestBase.php, line 2891 - Contains \Drupal\simpletest\WebTestBase.
Class
- WebTestBase
- Test case for typical Drupal tests.
Namespace
Drupal\simpletestCode
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('Email:<pre>' . print_r($mail, TRUE) . '</pre>');
}
}