Make WordPress Core

Changeset 43093


Ignore:
Timestamp:
05/02/2018 02:16:59 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Privacy: fix unit tests after [43012].

Props iandunn.
Merges [43015] to the 4.9 branch.
See #43546.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/tests/phpunit/tests/comment.php

    r43080 r43093  
    10031003     * Testing the `wp_comments_personal_data_exporter()` function.
    10041004     *
     1005     * @group privacy
    10051006     * @ticket 43440
    10061007     */
     
    10171018        );
    10181019
    1019         $c = self::factory()->comment->create( $args );
     1020        $comment_id = self::factory()->comment->create( $args );
    10201021
    10211022        $actual   = wp_comments_personal_data_exporter( $args['comment_author_email'] );
     
    10421043        $this->assertSame( $expected['comment_date'], $actual['data'][0]['data'][5]['value'] );
    10431044        $this->assertSame( $expected['comment_content'], $actual['data'][0]['data'][6]['value'] );
    1044         $this->assertSame( get_comment_link( $c ), $actual['data'][0]['data'][7]['value'] );
     1045        $this->assertSame( get_comment_link( $comment_id ), strip_tags( $actual['data'][0]['data'][7]['value'] ) );
    10451046    }
    10461047
     
    10481049     * Testing the `wp_comments_personal_data_exporter()` function for no comments found.
    10491050     *
     1051     * @group privacy
    10501052     * @ticket 43440
    10511053     */
     
    10651067     * Testing the `wp_comments_personal_data_exporter()` function for an empty comment property.
    10661068     *
     1069     * @group privacy
    10671070     * @ticket 43440
    10681071     */
     
    10951098     * Testing the `wp_comments_personal_data_exporter()` function with an empty second page.
    10961099     *
     1100     * @group privacy
    10971101     * @ticket 43440
    10981102     */
Note: See TracChangeset for help on using the changeset viewer.