Changeset 692 in tests for wp-testcase/test_includes_author.php
- Timestamp:
- 04/20/2012 12:06:58 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_includes_author.php
r691 r692 45 45 setup_postdata( get_post( $this->old_post_id ) ); 46 46 } 47 47 48 48 public function deprecated_handler( $function, $message, $version ) { 49 49 $this->_deprecated_errors[] = array( … … 68 68 $this->assertEquals( 'test_author', get_the_author_meta( 'user_login' ) ); 69 69 $this->assertEquals( 'test_author', get_the_author_meta( 'display_name' ) ); 70 70 71 $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) ); 71 72 $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); 73 add_user_meta( $this->author_id, 'user_description', 'user description' ); 74 $this->assertEquals( 'user description', get_user_meta( $this->author_id, 'user_description', true ) ); 75 // user_description in meta is ignored. The content of description is returned instead. 76 // See #20285 77 $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); 78 $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) ); 79 update_user_meta( $this->author_id, 'user_description', '' ); 80 $this->assertEquals( '', get_user_meta( $this->author_id, 'user_description', true ) ); 81 $this->assertEquals( 'test_author', get_the_author_meta( 'user_description' ) ); 82 $this->assertEquals( 'test_author', get_the_author_meta( 'description' ) ); 83 72 84 $this->assertEquals( '', get_the_author_meta( 'does_not_exist' ) ); 73 85
Note: See TracChangeset
for help on using the changeset viewer.