|
@@ 54-61 (lines=8) @@
|
| 51 |
|
/** |
| 52 |
|
* @ticket 30627 |
| 53 |
|
*/ |
| 54 |
|
function test_wp_update_comment_updates_comment_type() |
| 55 |
|
{ |
| 56 |
|
$comment_id = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id )); |
| 57 |
|
|
| 58 |
|
wp_update_comment(array( 'comment_ID' => $comment_id, 'comment_type' => 'pingback' )); |
| 59 |
|
|
| 60 |
|
$comment = get_comment($comment_id); |
| 61 |
|
$this->assertEquals('pingback', $comment->comment_type); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
/** |
|
@@ 67-74 (lines=8) @@
|
| 64 |
|
/** |
| 65 |
|
* @ticket 30307 |
| 66 |
|
*/ |
| 67 |
|
function test_wp_update_comment_updates_user_id() |
| 68 |
|
{ |
| 69 |
|
$comment_id = self::factory()->comment->create(array( 'comment_post_ID' => self::$post_id )); |
| 70 |
|
|
| 71 |
|
wp_update_comment(array( 'comment_ID' => $comment_id, 'user_id' => 1 )); |
| 72 |
|
|
| 73 |
|
$comment = get_comment($comment_id); |
| 74 |
|
$this->assertEquals(1, $comment->user_id); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |