public function EmailContext::iShouldNotHaveAnEmailWithTitleAndBody in Open Social 8.7
Same name and namespace in other branches
- 8.9 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 8.3 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 8.4 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 8.5 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 8.6 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 8.8 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 10.3.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 10.0.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 10.1.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::iShouldNotHaveAnEmailWithTitleAndBody()
- 10.2.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\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 219
Class
Namespace
Drupal\social\BehatCode
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.');
}
}