/** * Send message with `Swift_MailTransport` * * @return mixed */ public static function send() { $mailer = Transports::adapter('default'); return $mailer->send(static::prepareData()); }
public function test_unknown() { $this->expectException(); $mailer = Transports::adapter('foo'); }