Problem/Motivation

Clearly a good idea for code stability

Proposed resolution

Test framework

symfony_mailer_test module containing MailerTestService that processes emails. In postRender() set the transport to null://default, and in postSend() store the Email objects in Drupal state.

MailerTestTrait provides accessor functions for the email queue and asserts for checking emails.

Test cases

Initially just test the Test email.

Remaining tasks

#3278446: Add more tests

User interface changes

API changes

Data model changes

Comments

AdamPS created an issue. See original summary.

adamps’s picture

Status: Active » Needs work
StatusFileSize
new7.75 KB

Work in progress

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new7.95 KB
new5.01 KB

  • AdamPS committed c33a67e on 1.x
    Issue #3271802 by AdamPS: Write automatic tests
    
adamps’s picture

StatusFileSize
new2.55 KB

Status: Needs review » Needs work

The last submitted patch, 5: symfony_mailer.tests_.3271802-5.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • AdamPS committed afc27e4 on 1.x
    Issue #3271802 by AdamPS: Write automatic tests
    
adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new1.49 KB

Status: Needs review » Needs work

The last submitted patch, 8: symfony_mailer.tests_.3271802-8.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new6.04 KB
adamps’s picture

StatusFileSize
new1.53 KB

Status: Needs review » Needs work

The last submitted patch, 11: symfony_mailer.tests_.3271802-11.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new1.47 KB
adamps’s picture

StatusFileSize
new1.45 KB

Status: Needs review » Needs work

The last submitted patch, 14: symfony_mailer.tests_.3271802-14.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new2.25 KB

Status: Needs review » Needs work

The last submitted patch, 16: symfony_mailer.tests_.3271802-16.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new2.26 KB

Status: Needs review » Needs work

The last submitted patch, 18: symfony_mailer.tests_.3271802-18.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

adamps’s picture

Aha __serialize() is only supported from PHP 7.4 onwards d'oh!!

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new668 bytes

  • AdamPS committed c595be3 on 1.x
    Issue #3271802 by AdamPS: Write automatic tests
    
adamps’s picture

Title: Write automatic tests » Automatic test framework
Issue summary: View changes
adamps’s picture

StatusFileSize
new15.26 KB

  • AdamPS committed b75f835 on 1.x
    Issue #3271802 by AdamPS: Automatic test framework
    
adamps’s picture

Status: Needs review » Fixed
StatusFileSize
new15.26 KB

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.