Make WordPress Core

Changeset 41173


Ignore:
Timestamp:
07/27/2017 04:05:19 PM (7 years ago)
Author:
johnbillion
Message:

Formatting: Update the author description tests since the formatting change made in [41172].

See #40040

File:
1 edited

Legend:

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

    r39189 r41173  
    5353        $this->assertEquals( 'test_author', get_the_author_meta( 'display_name' ) );
    5454
    55         $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) );
     55        $this->assertEquals( '<p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );
    5656        $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) );
    5757        add_user_meta( self::$author_id, 'user_description', 'user description' );
     
    6060        // See #20285
    6161        $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) );
    62         $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) );
     62        $this->assertEquals( '<p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );
    6363        update_user_meta( self::$author_id, 'user_description', '' );
    6464        $this->assertEquals( '', get_user_meta( self::$author_id, 'user_description', true ) );
    6565        $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) );
    66         $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) );
     66        $this->assertEquals( '<p>test_author</p>', trim( get_the_author_meta( 'description' ) ) );
    6767
    6868        $this->assertEquals( '', get_the_author_meta( 'does_not_exist' ) );
Note: See TracChangeset for help on using the changeset viewer.