Changeset 43459 for branches/4.9/tests/phpunit/tests/user.php
- Timestamp:
- 07/16/2018 02:23:26 PM (6 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 43388,43390,43435
- Property svn:mergeinfo changed
-
branches/4.9/tests/phpunit/tests/user.php
r43117 r43459 1425 1425 reset_phpmailer_instance(); 1426 1426 1427 // Give the site and blog a name containing HTML entities 1428 update_site_option( 'site_name', ''Test' site's "name" has <html entities> &' ); 1427 // Give the site a name containing HTML entities 1429 1428 update_option( 'blogname', ''Test' blog's "name" has <html entities> &' ); 1430 1429 … … 1444 1443 1445 1444 // Assert that HTML entites have been decoded in body and subject 1446 if ( is_multisite() ) {1447 $this->assertContains( '\'Test\' site\'s "name" has <html entities> &', $email->body, 'Email body does not contain the decoded HTML entities' );1448 $this->assertNotContains( ''Test' site's "name" has <html entities> &', $email->body, 'Email body does contains HTML entities' );1449 }1450 1451 1445 $this->assertContains( '\'Test\' blog\'s "name" has <html entities> &', $email->subject, 'Email subject does not contain the decoded HTML entities' ); 1452 1446 $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.