public function MandrillTestCase::testSendMessageInvalidRecipient in Mandrill 7.2
Tests sending a message to an invalid recipient.
File
- tests/
mandrill.test, line 79 - Test class and methods for the Mandrill module.
Class
- MandrillTestCase
- @file Test class and methods for the Mandrill module.
Code
public function testSendMessageInvalidRecipient() {
$mail_system = new MandrillMailSystem();
$to = 'Recipient One <recipient.one>';
$message = $this
->getMessageTestData();
$message['to'] = $to;
$response = $mail_system
->mail($message);
$this
->assertFalse($response, 'Tested sending message to an invalid recipient.');
}