public function EmailContext::getEmailContent in Open Social 8.7
Same name and namespace in other branches
- 8.9 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 8.3 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 8.4 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 8.5 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 8.6 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 8.8 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 10.3.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 10.0.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 10.1.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
- 10.2.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
Get content of email.
Parameters
string $file: Path to the file.
Return value
string An unserialized email.
1 call to EmailContext::getEmailContent()
- EmailContext::findSubjectAndBody in tests/
behat/ features/ bootstrap/ EmailContext.php - Find an email with the given subject and body.
File
- tests/
behat/ features/ bootstrap/ EmailContext.php, line 78
Class
Namespace
Drupal\social\BehatCode
public function getEmailContent($file) {
return unserialize(file_get_contents($file));
}