Changeset 52800
- Timestamp:
- 02/25/2022 02:08:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/mail.php
r52799 r52800 242 242 add_filter( 'home_url', '__return_empty_string' ); 243 243 244 $ success= wp_mail( $to, $subject, $message );245 246 $this->assertFalse( $ success, 'wp_mail() should have returned false' );244 $result = wp_mail( $to, $subject, $message ); 245 246 $this->assertFalse( $result, 'wp_mail() should have returned false' ); 247 247 $this->assertGreaterThan( 0, did_action( 'wp_mail_failed' ), 'wp_mail_failed action was not called' ); 248 248 }
Note: See TracChangeset
for help on using the changeset viewer.