Changeset 47122 for trunk/tests/phpunit/tests/user/author.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/user/author.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/author.php
r46586 r47122 62 62 $this->assertEquals( 'user description', get_user_meta( self::$author_id, 'user_description', true ) ); 63 63 // user_description in meta is ignored. The content of description is returned instead. 64 // See #20285 64 // See #20285. 65 65 $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); 66 66 $this->assertEquals( 'test_author', trim( get_the_author_meta( 'description' ) ) ); … … 81 81 82 82 function test_get_the_author_posts() { 83 // Test with no global post, result should be 0 because no author is found 83 // Test with no global post, result should be 0 because no author is found. 84 84 $this->assertEquals( 0, get_the_author_posts() ); 85 85 $GLOBALS['post'] = self::$post_id;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)