You are here

public function EmailContext::getEmailContent in Open Social 8.7

Same name and namespace in other branches
  1. 8.9 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  2. 8.3 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  3. 8.4 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  4. 8.5 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  5. 8.6 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  6. 8.8 tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  7. 10.3.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  8. 10.0.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  9. 10.1.x tests/behat/features/bootstrap/EmailContext.php \Drupal\social\Behat\EmailContext::getEmailContent()
  10. 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

EmailContext

Namespace

Drupal\social\Behat

Code

public function getEmailContent($file) {
  return unserialize(file_get_contents($file));
}