WordPress.org

Make WordPress Core

Ticket #44113: 44113.patch

File 44113.patch, 782 bytes (added by 1naveengiri, 11 months ago)

Added a patch

  • tests/phpunit/tests/comment.php

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