mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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
This commit is contained in:
parent
da1f065cf7
commit
f22bd18b5a
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user