/** * 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); }