You are here

protected function MandrillTestCase::getMessageTestData in Mandrill 7.2

Gets message data used in tests.

3 calls to MandrillTestCase::getMessageTestData()
MandrillTestCase::testSendMessage in tests/mandrill.test
Tests sending a message to multiple recipients.
MandrillTestCase::testSendMessageInvalidRecipient in tests/mandrill.test
Tests sending a message to an invalid recipient.
MandrillTestCase::testSendMessageNoRecipients in tests/mandrill.test
Tests sending a message to no recipients.

File

tests/mandrill.test, line 139
Test class and methods for the Mandrill module.

Class

MandrillTestCase
@file Test class and methods for the Mandrill 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;
}