Changeset 43015 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 04/28/2018 12:10:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r42994 r43015 1117 1117 * Testing the `wp_comments_personal_data_exporter()` function. 1118 1118 * 1119 * @group privacy 1119 1120 * @ticket 43440 1120 1121 */ … … 1131 1132 ); 1132 1133 1133 $c = self::factory()->comment->create( $args );1134 $comment_id = self::factory()->comment->create( $args ); 1134 1135 1135 1136 $actual = wp_comments_personal_data_exporter( $args['comment_author_email'] ); … … 1156 1157 $this->assertSame( $expected['comment_date'], $actual['data'][0]['data'][5]['value'] ); 1157 1158 $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'] ) ); 1159 1160 } 1160 1161 … … 1162 1163 * Testing the `wp_comments_personal_data_exporter()` function for no comments found. 1163 1164 * 1165 * @group privacy 1164 1166 * @ticket 43440 1165 1167 */ … … 1179 1181 * Testing the `wp_comments_personal_data_exporter()` function for an empty comment property. 1180 1182 * 1183 * @group privacy 1181 1184 * @ticket 43440 1182 1185 */ … … 1209 1212 * Testing the `wp_comments_personal_data_exporter()` function with an empty second page. 1210 1213 * 1214 * @group privacy 1211 1215 * @ticket 43440 1212 1216 */
Note: See TracChangeset
for help on using the changeset viewer.