public function MandrillTestCase::testSendMessage in Mandrill 8
Tests sending a message to multiple recipients.
File
- tests/
src/ Functional/ MandrillTestCase.php, line 45 - Contains \Drupal\mandrill\Tests\MandrillTestCase.
Class
- MandrillTestCase
- Test core Mandrill functionality.
Namespace
Drupal\mandrill\TestsCode
public function testSendMessage() {
$mailSystem = $this
->getMandrillMail();
$message = $this
->getMessageTestData();
$message['to'] = 'Recipient One <recipient.one@example.com>,' . 'Recipient Two <recipient.two@example.com>,' . 'Recipient Three <recipient.three@example.com>';
$response = $mailSystem
->mail($message);
$this
->assertTrue($response, 'Tested sending message to multiple recipients.');
}