X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Tests%2FMailer.php;h=f1fa65eb5b0ee5030dc7f392bb7b7ed4edc701fd;hb=refs%2Fheads%2Fwip_edward_T5851_download_old_offer_sheet;hp=7ad19f353a5df159af842e14a155357614a8712b;hpb=5699b053be8b28c11e12645f1639ad75e7772272;p=Pman.Core diff --git a/Tests/Mailer.php b/Tests/Mailer.php index 7ad19f35..f1fa65eb 100644 --- a/Tests/Mailer.php +++ b/Tests/Mailer.php @@ -26,7 +26,7 @@ class Pman_Core_Tests_Mailer extends Pman } - function get($q, $opts) + function get($q, $opts=array()) { // send a test email to me... $this->rcpts = $opts['to']; @@ -36,7 +36,7 @@ class Pman_Core_Tests_Mailer extends Pman $this->test[$i] = $i; } - require_once 'Pman/Core/Mailer.php'; + require_once 'Pman/Core/Mailer.php'; $r = new Pman_Core_Mailer(array( 'template'=> 'test', 'contents' => array(), @@ -44,16 +44,16 @@ class Pman_Core_Tests_Mailer extends Pman 'attachments' => array( array( - 'file' => '/home/alan/Documents/Nestplaytimespjadcover.pdf', + 'file' => '/home/alan/Documents/Nestplaytimespjadcover.pdf', // pass the file path DO NOT pass the file content 'name' => 'Nestplaytimespjadcover.pdf', 'mimetype' => 'application/pdf' ) ) )); - return $r->send(); + $res = $r->send(); + var_dump($res); - $this->sendTemplate('test',array()); die("done?"); }