Opened 8 years ago
Closed 8 years ago
#41485 closed defect (bug) (fixed)
MockPHPMailer is not fully reset between tests
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
phpunit tests for mail call reset_phpmailer_instance() function from mock-mailer to reset the phpmailer instance. This function currently only cleans up array of mock sent emails, but other parameters of phpmailer are kept "dirty" from previous tests. This might influence consistency of tests.
Proposed solution is to recreate the phpmailer instance fully as it is done in bootstrap.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Create a new MockPHPMailer instance on reset instead just unsetting mock_sent