You are here

protected function MandrillTemplateTestCase::getMessageTestData in Mandrill 7.2

Gets message data used in tests.

2 calls to MandrillTemplateTestCase::getMessageTestData()
MandrillTemplateTestCase::testSendTemplatedMessage in modules/mandrill_template/tests/mandrill_template.test
Test sending a templated message to multiple recipients.
MandrillTemplateTestCase::testSendTemplatedMessageInvalidTemplate in modules/mandrill_template/tests/mandrill_template.test
Test sending a templated message using an invalid template.

File

modules/mandrill_template/tests/mandrill_template.test, line 108
Test class and methods for the Mandrill Template module.

Class

MandrillTemplateTestCase
@file Test class and methods for the Mandrill Template module.

Code

protected function getMessageTestData() {
  $message = array(
    'id' => 1,
    'body' => '<p>Mail content</p>',
    'subject' => 'Mail Subject',
    'from_email' => 'sender@example.com',
    'from_name' => 'Test Sender',
  );
  return $message;
}