protected function MandrillHooksTestCase::getMessageTestData in Mandrill 7.2
Gets message data used in tests.
2 calls to MandrillHooksTestCase::getMessageTestData()
- MandrillHooksTestCase::testMailAlterHook in tests/
mandrill_hooks.test - Tests implementing hook_mandrill_mail_alter().
- MandrillHooksTestCase::testMailsendResultHook in tests/
mandrill_hooks.test - Tests implementing hook_mandrill_mailsend_result().
File
- tests/
mandrill_hooks.test, line 130 - Test class and methods for the Mandrill Test module.
Class
- MandrillHooksTestCase
- @file Test class and methods for the Mandrill Test module.
Code
protected function getMessageTestData() {
$message = array(
'id' => 1,
'module' => NULL,
'body' => '<p>Mail content</p>',
'subject' => 'Mail Subject',
'from_email' => 'sender@example.com',
'from_name' => 'Test Sender',
);
return $message;
}