Changeset 43390
- Timestamp:
- 07/05/2018 08:52:06 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r43116 r43390 1517 1517 reset_phpmailer_instance(); 1518 1518 1519 // Give the site and blog a name containing HTML entities 1520 update_site_option( 'site_name', ''Test' site's "name" has <html entities> &' ); 1519 // Give the site a name containing HTML entities 1521 1520 update_option( 'blogname', ''Test' blog's "name" has <html entities> &' ); 1522 1521 … … 1536 1535 1537 1536 // Assert that HTML entites have been decoded in body and subject 1538 if ( is_multisite() ) {1539 $this->assertContains( '\'Test\' site\'s "name" has <html entities> &', $email->body, 'Email body does not contain the decoded HTML entities' );1540 $this->assertNotContains( ''Test' site's "name" has <html entities> &', $email->body, 'Email body does contains HTML entities' );1541 }1542 1543 1537 $this->assertContains( '\'Test\' blog\'s "name" has <html entities> &', $email->subject, 'Email subject does not contain the decoded HTML entities' ); 1544 1538 $this->assertNotContains( ''Test' blog's "name" has <html entities> &', $email->subject, 'Email subject does contains HTML entities' );
Note: See TracChangeset
for help on using the changeset viewer.