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
This commit is contained in:
parent
de70dabf63
commit
62562f8428
@ -782,9 +782,11 @@ class Tests_Comment_Submission extends WP_UnitTestCase {
|
|||||||
'comment_author_url' => $user->user_url,
|
'comment_author_url' => $user->user_url,
|
||||||
'comment_content' => $data['comment'],
|
'comment_content' => $data['comment'],
|
||||||
'comment_type' => 'comment',
|
'comment_type' => 'comment',
|
||||||
'comment_parent' => '0',
|
'comment_parent' => 0,
|
||||||
'user_ID' => $user->ID,
|
'user_ID' => $user->ID,
|
||||||
'user_id' => $user->ID,
|
'user_id' => $user->ID,
|
||||||
|
'comment_author_IP' => '127.0.0.1',
|
||||||
|
'comment_agent' => ''
|
||||||
),
|
),
|
||||||
$this->preprocess_comment_data
|
$this->preprocess_comment_data
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user