Ejemplo n.º 1
0
 /**
  * Test on the send mail with sendAt
  */
 public function testSendMailWithSendAt()
 {
     $this->sendGridMailer->setSendAt(new \DateTime());
     $this->sendGridMailer->prepare('*****@*****.**', 'fromTestWithSendAt', ['*****@*****.**'], 'test subject with sendAt', 'test body with sendAt')->send();
     \Phake::verify($this->sendGrid)->send(\Phake::anyParameters());
 }
 /**
  * Test on the send mail
  */
 public function testSendMail()
 {
     $result = $this->sendGridMailer->prepare('*****@*****.**', 'fromTest', ['*****@*****.**'], 'test subject', 'test body')->send();
     $this->assertTrue($result);
 }