From 62562f84287cb7f9d4b9a3a6c75e9b239357bb52 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 19 Aug 2020 16:06:27 +0000 Subject: [PATCH] Tests: Update unit tests to account for `comment_agent` and `comment_author_IP` values being passed to the `preprocess_comment` filter. See #51044. git-svn-id: https://develop.svn.wordpress.org/trunk@48830 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment-submission.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 );