[wp-trac] [WordPress Trac] #36609: Unit tests in Tests_Mail not resetting the phpmailer mock

WordPress Trac noreply at wordpress.org
Wed Apr 20 20:44:05 UTC 2016


#36609: Unit tests in Tests_Mail not resetting the phpmailer mock
------------------------------+-----------------------------
 Reporter:  welcher           |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  has-patch
  Focuses:                    |
------------------------------+-----------------------------
 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()`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36609>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list