Changeset 58097 for trunk/tests/phpunit/tests/pluggable/wpMail.php
- Timestamp:
- 05/04/2024 07:23:31 PM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable/wpMail.php
r55822 r58097 222 222 */ 223 223 public function test_wp_mail_with_empty_from_header() { 224 // Make sure that we don't add any ports to the from header. 225 $url_parts = parse_url( 'http://' . WP_TESTS_DOMAIN ); 226 224 227 $to = 'address@tld.com'; 225 228 $subject = 'Testing'; 226 229 $message = 'Test Message'; 227 230 $headers = 'From: '; 228 $expected = 'From: WordPress <wordpress@' . WP_TESTS_DOMAIN. '>';231 $expected = 'From: WordPress <wordpress@' . $url_parts['host'] . '>'; 229 232 230 233 wp_mail( $to, $subject, $message, $headers );
Note: See TracChangeset
for help on using the changeset viewer.