Changeset 31171 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 01/13/2015 06:41:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r30402 r31171 14 14 $result = wp_update_comment( array( 'comment_ID' => $comments[0], 'comment_parent' => $comments[1] ) ); 15 15 $this->assertEquals( 0, $result ); 16 } 17 18 /** 19 * @ticket 30627 20 */ 21 function test_wp_update_comment_updates_comment_type() { 22 $post_id = $this->factory->post->create(); 23 $comment_id = $this->factory->comment->create( array( 'comment_post_ID' => $post_id ) ); 24 25 wp_update_comment( array( 'comment_ID' => $comment_id, 'comment_type' => 'pingback' ) ); 26 27 $comment = get_comment( $comment_id ); 28 $this->assertEquals( 'pingback', $comment->comment_type ); 16 29 } 17 30
Note: See TracChangeset
for help on using the changeset viewer.