Make WordPress Core

Changeset 43390


Ignore:
Timestamp:
07/05/2018 08:52:06 AM (6 years ago)
Author:
flixos90
Message:

Tests: Fix failing test after [43388].

Fixes #44396.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user.php

    r43116 r43390  
    15171517        reset_phpmailer_instance();
    15181518
    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
    15211520        update_option( 'blogname', ''Test' blog's "name" has <html entities> &' );
    15221521
     
    15361535
    15371536        // 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( '&#039;Test&#039; site&#039;s &quot;name&quot; has &lt;html entities&gt; &amp;', $email->body, 'Email body does contains HTML entities' );
    1541         }
    1542 
    15431537        $this->assertContains( '\'Test\' blog\'s "name" has <html entities> &', $email->subject, 'Email subject does not contain the decoded HTML entities' );
    15441538        $this->assertNotContains( '&#039;Test&#039; blog&#039;s &quot;name&quot; has &lt;html entities&gt; &amp;', $email->subject, 'Email subject does contains HTML entities' );
Note: See TracChangeset for help on using the changeset viewer.