Changeset 692 in tests
- Timestamp:
- 04/20/2012 12:06:58 AM (13 years ago)
- Files:
-
- 2 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 -
wp-testlib/base.php
r686 r692 387 387 'pass2' => $pass, 388 388 'email' => $email, 389 'description' => $user_login, 389 390 ); 390 391
Note: See TracChangeset
for help on using the changeset viewer.