public function EmailContext::iShouldNotHaveAnEmailWithTitleAndBodyMulti in Open Social 8.2
Same name and namespace in other branches
- 8 tests/behat/features/bootstrap/EmailContext.php \EmailContext::iShouldNotHaveAnEmailWithTitleAndBodyMulti()
I do not have an email with multiple content.
@Then I should not have an email with subject :arg1 and in the content:
File
- tests/
behat/ features/ bootstrap/ EmailContext.php, line 216
Class
Code
public function iShouldNotHaveAnEmailWithTitleAndBodyMulti($subject, TableNode $table) {
$body = [];
$hash = $table
->getHash();
foreach ($hash as $row) {
$body[] = $row['content'];
}
$found_email = $this
->findSubjectAndBody($subject, $body);
if ($found_email) {
throw new \Exception('There is an email with that subject and body.');
}
}