Changeset 43093
- Timestamp:
- 05/02/2018 02:16:59 AM (7 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/tests/phpunit/tests/comment.php
r43080 r43093 1003 1003 * Testing the `wp_comments_personal_data_exporter()` function. 1004 1004 * 1005 * @group privacy 1005 1006 * @ticket 43440 1006 1007 */ … … 1017 1018 ); 1018 1019 1019 $c = self::factory()->comment->create( $args );1020 $comment_id = self::factory()->comment->create( $args ); 1020 1021 1021 1022 $actual = wp_comments_personal_data_exporter( $args['comment_author_email'] ); … … 1042 1043 $this->assertSame( $expected['comment_date'], $actual['data'][0]['data'][5]['value'] ); 1043 1044 $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'] ) ); 1045 1046 } 1046 1047 … … 1048 1049 * Testing the `wp_comments_personal_data_exporter()` function for no comments found. 1049 1050 * 1051 * @group privacy 1050 1052 * @ticket 43440 1051 1053 */ … … 1065 1067 * Testing the `wp_comments_personal_data_exporter()` function for an empty comment property. 1066 1068 * 1069 * @group privacy 1067 1070 * @ticket 43440 1068 1071 */ … … 1095 1098 * Testing the `wp_comments_personal_data_exporter()` function with an empty second page. 1096 1099 * 1100 * @group privacy 1097 1101 * @ticket 43440 1098 1102 */
Note: See TracChangeset
for help on using the changeset viewer.