Opened 10 years ago
Closed 10 years ago
#36609 closed defect (bug) (fixed)
Unit tests in Tests_Mail not resetting the phpmailer mock
| Reported by: | welcher | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: |
Description
While writing some tests for #33932, I found that the Test_Mail class was not reseting the phpmailer mock after the last test because the unset( $GLOBALS['phpmailer']->mock_sent ); was only happening in setUp().
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Adding tearDown() to cleanup after last test