From c880ed1c97dbfe70d7cfd76b428c6f0979e13fb6 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 27 Jul 2017 16:05:19 +0000 Subject: [PATCH] Formatting: Update the author description tests since the formatting change made in [41172]. See #40040 git-svn-id: https://develop.svn.wordpress.org/trunk@41173 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/user/author.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/user/author.php b/tests/phpunit/tests/user/author.php index 9c95d7a473..db51830cf5 100644 --- a/tests/phpunit/tests/user/author.php +++ b/tests/phpunit/tests/user/author.php @@ -52,18 +52,18 @@ class Tests_User_Author_Template extends WP_UnitTestCase { $this->assertEquals( 'test_author', get_the_author_meta( 'user_login' ) ); $this->assertEquals( 'test_author', get_the_author_meta( 'display_name' ) ); - $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) ); + $this->assertEquals( '

test_author

', trim( get_the_author_meta( 'description' ) ) ); $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); add_user_meta( self::$author_id, 'user_description', 'user description' ); $this->assertEquals( 'user description', get_user_meta( self::$author_id, 'user_description', true ) ); // user_description in meta is ignored. The content of description is returned instead. // See #20285 $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); - $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) ); + $this->assertEquals( '

test_author

', trim( get_the_author_meta( 'description' ) ) ); update_user_meta( self::$author_id, 'user_description', '' ); $this->assertEquals( '', get_user_meta( self::$author_id, 'user_description', true ) ); $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); - $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) ); + $this->assertEquals( '

test_author

', trim( get_the_author_meta( 'description' ) ) ); $this->assertEquals( '', get_the_author_meta( 'does_not_exist' ) ); }