/** * Test on the send mail */ public function testSendMail() { $this->swiftMailer->prepare('*****@*****.**', 'fromTest', ['*****@*****.**'], 'test subject', 'test body')->send(); \Phake::verify($this->swift)->send(\Phake::anyParameters()); }
/** * Test on the send mail */ public function testSendMail() { $result = $this->swiftMailer->prepare('*****@*****.**', 'fromTest', ['*****@*****.**'], 'test subject', 'test body')->send(); $this->assertTrue($result); }