Changeset 37358 for trunk/tests/phpunit/includes/mock-mailer.php
- Timestamp:
- 05/04/2016 03:48:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/mock-mailer.php
r36594 r37358 85 85 return $mailer; 86 86 } 87 88 /** 89 * Helper method to reset the phpmailer instance. 90 * 91 * @since 4.6.0 92 * 93 * @return bool 94 */ 95 function reset_phpmailer_instance() { 96 $mailer = tests_retrieve_phpmailer_instance(); 97 if ( $mailer && isset( $mailer->mock_sent ) ) { 98 unset( $mailer->mock_sent ); 99 return true; 100 } 101 102 return false; 103 }
Note: See TracChangeset
for help on using the changeset viewer.