Make WordPress Core

Changeset 48830


Ignore:
Timestamp:
08/19/2020 04:06:27 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Tests: Update unit tests to account for comment_agent and comment_author_IP values being passed to the preprocess_comment filter.

See #51044.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment-submission.php

    r47626 r48830  
    783783                'comment_content'      => $data['comment'],
    784784                'comment_type'         => 'comment',
    785                 'comment_parent'       => '0',
     785                'comment_parent'       => 0,
    786786                'user_ID'              => $user->ID,
    787787                'user_id'              => $user->ID,
     788                'comment_author_IP'    => '127.0.0.1',
     789                'comment_agent'        => ''
    788790            ),
    789791            $this->preprocess_comment_data
Note: See TracChangeset for help on using the changeset viewer.