public function EmailContext::iShouldNotHaveAnEmailWithTitleAndBody in Open Social 8
Same name and namespace in other branches
- 8.2 tests/behat/features/bootstrap/EmailContext.php \EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
I do not have an email.
@Then /^(?:|I )should not have an email with subject "([^"]*)" and "([^"]*)" in the body$/
File
- tests/
behat/ features/ bootstrap/ EmailContext.php, line 203
Class
Code
public function iShouldNotHaveAnEmailWithTitleAndBody($subject, $body) {
$found_email = $this
->findSubjectAndBody($subject, [
$body,
]);
if ($found_email) {
throw new \Exception('There is an email with that subject and body.');
}
}