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