public function testGetMandrill() { $mandrillMailer = new \nickcv\mandrill\Mailer(['apikey' => 'testing']); $this->assertInstanceOf('\\Mandrill', $mandrillMailer->getMandrill()); }
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); }