Closed (fixed)
Project:
Swift Mailer (abandoned)
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2020 at 12:54 UTC
Updated:
30 Apr 2020 at 15:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
geek-merlinCan you look into #2892104: Add support for CC and BCC headers if the test mechanism there helps in any way? SHould we commit that as is or merge into any other?
Comment #3
adamps commentedFrom first glance I don't think there is much in common. The other issue is about testing the
mail()method whereas I am talking about testing theformat()method. I updated the title to clarify that.Comment #4
geek-merlinTHx!
Comment #5
adamps commentedPatch for step 1: remove the unit test
Comment #7
adamps commentedI will commit each step separately so that it's possible to trace the history more easily in git.
Comment #8
adamps commentedNext step: rename the test to match what it does
Comment #10
adamps commentedComment #12
adamps commentedPatch for step 2. It's pretty amusing the things I had to write for expected values to make the tests run with the current code.
Comment #13
geek-merlin> I will commit each step separately so that it's possible to trace the history more easily in git.
I really like this approach.
Comment #14
adamps commentedComment #15
adamps commentedOops missed 1 call to massageMessageBody()
Comment #17
adamps commentedComment #19
adamps commentedComment #21
adamps commentedComment #23
adamps commentedComment #25
adamps commentedAdd inline CSS test. That seems pretty good for now, let's mark as fixed.
Comment #26
adamps commentedNew patch to create SwiftMailerTestBase including use of AssertMailTrait to check mails that have been sent.
Comment #28
adamps commentedComment #30
adamps commentedComment #31
adamps commentedSome real mails test generated by Drupal Core. Mostly they prove that Core sucks with special characters in mails.
Comment #33
adamps commented