Changeset 35225 for trunk/tests/phpunit/tests/comment/walker.php
- Timestamp:
- 10/16/2015 09:04:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/walker.php
r28824 r35225 9 9 parent::setUp(); 10 10 11 $this->post_id = $this->factory->post->create();11 $this->post_id = self::$factory->post->create(); 12 12 } 13 13 … … 16 16 */ 17 17 function test_has_children() { 18 $comment_parent = $this->factory->comment->create( array( 'comment_post_ID' => $this->post_id ) );19 $comment_child = $this->factory->comment->create( array( 'comment_post_ID' => $this->post_id, 'comment_parent' => $comment_parent ) );18 $comment_parent = self::$factory->comment->create( array( 'comment_post_ID' => $this->post_id ) ); 19 $comment_child = self::$factory->comment->create( array( 'comment_post_ID' => $this->post_id, 'comment_parent' => $comment_parent ) ); 20 20 $comment_parent = get_comment( $comment_parent ); 21 21 $comment_child = get_comment( $comment_child );
Note: See TracChangeset
for help on using the changeset viewer.