From f22bd18b5a7103a5a127eef51ae60b97f0712cf7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 26 Jun 2009 04:28:47 +0000 Subject: [PATCH] BUGFIX Return values in TestMailer for send() commands same as Mailer class git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@80148 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- dev/TestMailer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dev/TestMailer.php b/dev/TestMailer.php index c70119d30..e170ee1c8 100644 --- a/dev/TestMailer.php +++ b/dev/TestMailer.php @@ -23,6 +23,8 @@ class TestMailer extends Mailer { 'attachedFiles' => $attachedFiles, 'customHeaders' => $customHeaders, ); + + return true; } /** @@ -44,6 +46,8 @@ class TestMailer extends Mailer { 'customHeaders' => $customHeaders, 'inlineImages' => $inlineImages, ); + + return true; } /** @@ -65,7 +69,7 @@ class TestMailer extends Mailer { function findEmail($to, $from = null, $subject = null, $content = null) { foreach($this->emailsSent as $email) { $matched = true; - + foreach(array('to','from','subject','content') as $field) { if($value = $$field) { if($value[0] == '/') $matched = preg_match($value, $email[$field]);