Changeset 35225 for trunk/tests/phpunit/tests/avatar.php
- Timestamp:
- 10/16/2015 09:04:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/avatar.php
r33425 r35225 88 88 $this->assertEquals( $url, $url2 ); 89 89 90 $post_id = $this->factory->post->create( array( 'post_author' => 1 ) );90 $post_id = self::$factory->post->create( array( 'post_author' => 1 ) ); 91 91 $post = get_post( $post_id ); 92 92 $url2 = get_avatar_url( $post ); 93 93 $this->assertEquals( $url, $url2 ); 94 94 95 $comment_id = $this->factory->comment->create( array( 'comment_post_ID' => $post_id, 'user_id' => 1 ) );95 $comment_id = self::$factory->comment->create( array( 'comment_post_ID' => $post_id, 'user_id' => 1 ) ); 96 96 $comment = get_comment( $comment_id ); 97 97 $url2 = get_avatar_url( $comment ); … … 139 139 $url = get_avatar_url( 1 ); 140 140 141 $post_id = $this->factory->post->create( array( 'post_author' => 1 ) );142 $comment_id = $this->factory->comment->create( array( 'comment_post_ID' => $post_id, 'user_id' => 1, 'comment_type' => 'pingback' ) );141 $post_id = self::$factory->post->create( array( 'post_author' => 1 ) ); 142 $comment_id = self::$factory->comment->create( array( 'comment_post_ID' => $post_id, 'user_id' => 1, 'comment_type' => 'pingback' ) ); 143 143 $comment = get_comment( $comment_id ); 144 144
Note: See TracChangeset
for help on using the changeset viewer.