You are here

public function EmailContext::getEmailContent in Open Social 8

Same name and namespace in other branches
  1. 8.2 tests/behat/features/bootstrap/EmailContext.php \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 71

Class

EmailContext

Code

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