public function MailhandlerNodeTest::getFileContent in Mailhandler 8
Returns the content of a requested file.
See \Drupal\Tests\inmail\Kernel\ModeratorForwardTest.
Parameters
string $filename: The name of the file.
Return value
string The content of the file.
2 calls to MailhandlerNodeTest::getFileContent()
- MailhandlerNodeTest::testMailhandlerNodePlugin in tests/
src/ Kernel/ MailhandlerNodeTest.php  - Tests features of Mailhandler Node plugin.
 - MailhandlerNodeTest::testSignedMails in tests/
src/ Kernel/ MailhandlerNodeTest.php  - Tests signed mail messages.
 
File
- tests/
src/ Kernel/ MailhandlerNodeTest.php, line 180  
Class
- MailhandlerNodeTest
 - Tests the Node handler plugin.
 
Namespace
Drupal\Tests\mailhandler\KernelCode
public function getFileContent($filename) {
  $path = drupal_get_path('module', 'mailhandler') . '/tests/' . $filename;
  return file_get_contents(DRUPAL_ROOT . '/' . $path);
}