Changeset 35242 for trunk/tests/phpunit/tests/comment/walker.php
- Timestamp:
- 10/17/2015 06:02:16 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/walker.php
r35225 r35242 9 9 parent::setUp(); 10 10 11 $this->post_id = self:: $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 = 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 ) );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.