Changeset 41185 for trunk/tests/phpunit/includes/mock-mailer.php
- Timestamp:
- 07/29/2017 08:52:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/mock-mailer.php
r38058 r41185 95 95 function reset_phpmailer_instance() { 96 96 $mailer = tests_retrieve_phpmailer_instance(); 97 if ( $mailer && isset( $mailer->mock_sent )) {98 unset( $mailer->mock_sent);97 if ( $mailer ) { 98 $GLOBALS['phpmailer'] = new MockPHPMailer( true ); 99 99 return true; 100 100 }
Note: See TracChangeset
for help on using the changeset viewer.