Changeset 38287 for branches/4.6/tests/phpunit/tests/mail.php
- Timestamp:
- 08/20/2016 02:20:04 AM (9 years ago)
- Location:
- branches/4.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
-
branches/4.6/tests/phpunit/tests/mail.php
r38058 r38287 343 343 } 344 344 } 345 346 /** 347 * Test that the Sender field in the SMTP envelope is not set by Core. 348 * 349 * Correctly setting the Sender requires knowledge that is not available 350 * to Core. An incorrect value will often lead to messages being rejected 351 * by the receiving MTA, so it's the admin's responsibility to 352 * set it correctly. 353 * 354 * @ticket 37736 355 */ 356 public function test_wp_mail_sender_not_set() { 357 wp_mail( 'user@example.org', 'Testing the Sender field', 'The Sender field should not have been set.' ); 358 359 $mailer = tests_retrieve_phpmailer_instance(); 360 361 $this->assertEquals( '', $mailer->Sender ); 362 } 345 363 }
Note: See TracChangeset
for help on using the changeset viewer.