Exemplo n.º 1
0
 public function testGetMandrill()
 {
     $mandrillMailer = new \nickcv\mandrill\Mailer(['apikey' => 'testing']);
     $this->assertInstanceOf('\\Mandrill', $mandrillMailer->getMandrill());
 }
Exemplo n.º 2
0
 public function testCannotSendIfMandrillTemplateNotFound()
 {
     $mandrill = new \nickcv\mandrill\Mailer(['apikey' => 'raHz6vHU9J2YxN-F1QryTw', 'useMandrillTemplates' => true]);
     $result = $mandrill->compose('madeupTemplate', ['WORD' => 'my word'])->setTo('*****@*****.**')->setSubject('test template email')->embed($this->getTestImagePath())->attach($this->getTestPdfPath())->send();
     $this->assertFalse($result);
 }