public function MandrillTestCase::testSendMessage in Mandrill 7.2
Tests sending a message to multiple recipients.
File
- tests/mandrill.test, line 61 
- Test class and methods for the Mandrill module.
Class
- MandrillTestCase
- @file Test class and methods for the Mandrill module.
Code
public function testSendMessage() {
  $mail_system = new MandrillMailSystem();
  $to = 'Recipient One <recipient.one@example.com>,' . 'Recipient Two <recipient.two@example.com>,' . 'Recipient Three <recipient.three@example.com>';
  $message = $this
    ->getMessageTestData();
  $message['to'] = $to;
  $response = $mail_system
    ->mail($message);
  $this
    ->assertTrue($response, 'Tested sending message to multiple recipients.');
}