mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10172 from ssmarco/patch-1
TestMailer - Add Headers attribute in order for tests to assert its contents
This commit is contained in:
commit
acb04e3d17
@ -48,7 +48,8 @@ class TestMailer implements Mailer
|
||||
'From' => implode(';', array_keys($email->getFrom() ?: [])),
|
||||
'Subject' => $email->getSubject(),
|
||||
'Content' => $email->getBody(),
|
||||
'AttachedFiles' => $attachedFiles
|
||||
'AttachedFiles' => $attachedFiles,
|
||||
'Headers' => $email->getSwiftMessage()->getHeaders(),
|
||||
];
|
||||
if ($plainContent) {
|
||||
$serialised['PlainContent'] = $plainContent;
|
||||
|
Loading…
Reference in New Issue
Block a user