public function EmailContext::getEmailContent in Open Social 8.2
Same name and namespace in other branches
- 8 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
Code
public function getEmailContent($file) {
return unserialize(file_get_contents($file));
}