Changeset 1102 in tests for trunk/tests/comment.php
- Timestamp:
- 10/31/2012 08:32:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/comment.php
r1056 r1102 7 7 function test_wp_update_comment() { 8 8 $post = $this->factory->post->create_and_get( array( 'post_title' => 'some-post', 'post_type' => 'post' ) ); 9 $comments = $this->factory->comment->create_post_comments( $post _id, 5 );9 $comments = $this->factory->comment->create_post_comments( $post->ID, 5 ); 10 10 $result = wp_update_comment( array( 'comment_ID' => $comments[0], 'comment_parent' => $comments[1] ) ); 11 11 $this->assertEquals( 1, $result );
Note: See TracChangeset
for help on using the changeset viewer.