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:
Michal Kleiner 2022-01-10 09:54:13 +13:00 committed by GitHub
commit acb04e3d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,8 @@ class TestMailer implements Mailer
'From' => implode(';', array_keys($email->getFrom() ?: [])), 'From' => implode(';', array_keys($email->getFrom() ?: [])),
'Subject' => $email->getSubject(), 'Subject' => $email->getSubject(),
'Content' => $email->getBody(), 'Content' => $email->getBody(),
'AttachedFiles' => $attachedFiles 'AttachedFiles' => $attachedFiles,
'Headers' => $email->getSwiftMessage()->getHeaders(),
]; ];
if ($plainContent) { if ($plainContent) {
$serialised['PlainContent'] = $plainContent; $serialised['PlainContent'] = $plainContent;