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