Adjustments

This commit is contained in:
Travis Swientek 2013-08-08 16:28:02 -07:00
parent 104bb72008
commit 8498145b2f
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class BatchMessage extends MessageBuilder{
if($this->toRecipientCount == 1000){
//If autoSend is off, do things here.
if($this->autoSend == false){
throw new TooManyParameters("You've exceeded the maximum recipient count (1,000) on the to field.");
throw new TooManyParameters("You've exceeded the maximum recipient count (1,000) on the to field with autosend disabled.");
}
else{
$this->sendMessage();

View File

@ -46,7 +46,7 @@ class BatchMessageTest extends \Mailgun\Tests\MailgunTestCase{
$message->setFromAddress("samples@mailgun.org", array("first" => "Test", "last" => "User"));
$message->setSubject("This is the subject of the message!");
$message->setTextBody("This is the text body of the message!");
$message->sendMessage();
$message->finalize();
$messageObj= $message->getMessage();
$this->assertTrue(true, empty($messageObj));
}