diff --git a/tests/phpunit/tests/comment.php b/tests/phpunit/tests/comment.php index 7f63c62912..a1e3fb3cd4 100644 --- a/tests/phpunit/tests/comment.php +++ b/tests/phpunit/tests/comment.php @@ -1156,7 +1156,7 @@ class Tests_Comment extends WP_UnitTestCase { $this->assertSame( $expected['comment_agent'], $actual['data'][0]['data'][4]['value'] ); $this->assertSame( $expected['comment_date'], $actual['data'][0]['data'][5]['value'] ); $this->assertSame( $expected['comment_content'], $actual['data'][0]['data'][6]['value'] ); - $this->assertSame( get_comment_link( $comment_id ), strip_tags( $actual['data'][0]['data'][7]['value'] ) ); + $this->assertSame( esc_html( get_comment_link( $comment_id ) ), strip_tags( $actual['data'][0]['data'][7]['value'] ) ); } /**