The following has been changed:
- The
TestingMailSystemclass now implements a stripped downformat()method to make the resulting message body more comparable usingassertMail(). Currently, to be able to compare the captured result of adrupal_mail()action, you have to convert and wrap the body before comparison, which is not what we want (rather the convert and wrap functions used in the default mail implementation need their own tests). assertMail()has been enhanced to support validation of the 'headers' sub-array (required for thedrupal_mail()test).MailTestCaseclass was duplicatingTestingMailSystemin parts: this was not necessary and has been simplified,testPluggableFramework()now directly validates the implementation returned bydrupal_mail_system()for a given module/key pair.- Last not least, added a test to validate the message structure created by
drupal_mail().
| Comment | File | Size | Author |
|---|---|---|---|
| mail_test.patch | 7.64 KB | smk-ka |
Comments
Comment #1
sunsubscribing
Comment #3
dave reid