Changeset 439 in tests
- Timestamp:
- 09/19/2011 02:16:33 PM (15 years ago)
- File:
-
- 1 edited
-
wp-testcase/test_includes_pluggable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_pluggable.php
r407 r439 219 219 unset( $_SERVER['SERVER_NAME'] ); 220 220 } 221 222 function test_wp_mail_to_address_no_name() { 223 $this->knownWPBug( 18463 ); 224 225 $to = "<address@tld.com>"; 226 $subject = "RFC2822 Testing"; 227 $message = "My RFC822 Test Message"; 228 229 unset($GLOBALS['phpmailer']->mock_sent); 230 $_SERVER['SERVER_NAME'] = 'example.com'; 231 wp_mail( $to, $subject, $message ); 232 233 $this->assertEquals('<address@tld.com>', $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0]); 234 $this->assertEquals($message . "\n", $GLOBALS['phpmailer']->mock_sent[0]['body']); 235 unset( $_SERVER['SERVER_NAME'] ); 236 } 221 237 } 222 238
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)