diff --git a/tests/phpunit/tests/comment-submission.php b/tests/phpunit/tests/comment-submission.php index e2534ed2e8..e544d75cca 100644 --- a/tests/phpunit/tests/comment-submission.php +++ b/tests/phpunit/tests/comment-submission.php @@ -782,9 +782,11 @@ class Tests_Comment_Submission extends WP_UnitTestCase { 'comment_author_url' => $user->user_url, 'comment_content' => $data['comment'], 'comment_type' => 'comment', - 'comment_parent' => '0', + 'comment_parent' => 0, 'user_ID' => $user->ID, 'user_id' => $user->ID, + 'comment_author_IP' => '127.0.0.1', + 'comment_agent' => '' ), $this->preprocess_comment_data );