Changeset 1301 in tests for trunk/tests/mail.php
- Timestamp:
- 06/29/2013 10:53:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/mail.php
r1300 r1301 210 210 unset( $_SERVER['SERVER_NAME'] ); 211 211 } 212 213 /** 214 * @ticket 23642 215 */ 216 function test_wp_mail_return_value() { 217 // No errors 218 $this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body' ) ); 219 220 // Non-fatal errors 221 $this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body', "Cc: invalid-address\nBcc: @invalid.address", ABSPATH . '/non-existant-file.html' ) ); 222 223 // Fatal errors 224 $this->assertFalse( wp_mail( 'invalid.address', 'subject', 'body', '', array() ) ); 225 } 212 226 }
Note: See TracChangeset
for help on using the changeset viewer.