Make WordPress Core


Ignore:
Timestamp:
04/28/2018 12:10:13 PM (8 years ago)
Author:
azaozz
Message:

Privacy: fix unit tests after [43012].

Props iandunn.
See #43546.

File:
1 edited

Legend:

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

    r42994 r43015  
    11171117         * Testing the `wp_comments_personal_data_exporter()` function.
    11181118         *
     1119         * @group privacy
    11191120         * @ticket 43440
    11201121         */
     
    11311132                );
    11321133
    1133                 $c = self::factory()->comment->create( $args );
     1134                $comment_id = self::factory()->comment->create( $args );
    11341135
    11351136                $actual   = wp_comments_personal_data_exporter( $args['comment_author_email'] );
     
    11561157                $this->assertSame( $expected['comment_date'], $actual['data'][0]['data'][5]['value'] );
    11571158                $this->assertSame( $expected['comment_content'], $actual['data'][0]['data'][6]['value'] );
    1158                 $this->assertSame( get_comment_link( $c ), $actual['data'][0]['data'][7]['value'] );
     1159                $this->assertSame( get_comment_link( $comment_id ), strip_tags( $actual['data'][0]['data'][7]['value'] ) );
    11591160        }
    11601161
     
    11621163         * Testing the `wp_comments_personal_data_exporter()` function for no comments found.
    11631164         *
     1165         * @group privacy
    11641166         * @ticket 43440
    11651167         */
     
    11791181         * Testing the `wp_comments_personal_data_exporter()` function for an empty comment property.
    11801182         *
     1183         * @group privacy
    11811184         * @ticket 43440
    11821185         */
     
    12091212         * Testing the `wp_comments_personal_data_exporter()` function with an empty second page.
    12101213         *
     1214         * @group privacy
    12111215         * @ticket 43440
    12121216         */
Note: See TracChangeset for help on using the changeset viewer.