mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user