Changeset 48645 for trunk/tests/phpunit/includes/mock-mailer.php
- Timestamp:
- 07/27/2020 08:17:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/mock-mailer.php
r48058 r48645 97 97 $mailer = tests_retrieve_phpmailer_instance(); 98 98 if ( $mailer ) { 99 $GLOBALS['phpmailer'] = new MockPHPMailer( true ); 99 $mailer = new MockPHPMailer( true ); 100 $mailer::$validator = static function ( $email ) { 101 return (bool) is_email( $email ); 102 }; 103 104 $GLOBALS['phpmailer'] = $mailer; 100 105 return true; 101 106 }
Note: See TracChangeset
for help on using the changeset viewer.