From bc28f52762ef67024febf98e82c7c211944fe17b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 19 Apr 2023 14:49:51 +0000 Subject: [PATCH] Tests: Correct the expected quotes in `get_comment_author_url_link()` tests. Follow-up to [55660]. See #57839. git-svn-id: https://develop.svn.wordpress.org/trunk@55661 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/comment/getCommentAuthorUrlLink.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php b/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php index c9acc6732d..7e60b9cc1b 100644 --- a/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php +++ b/tests/phpunit/tests/comment/getCommentAuthorUrlLink.php @@ -20,7 +20,7 @@ class Tests_Comment_GetCommentAuthorUrlLink extends WP_UnitTestCase { $linktext = rtrim( preg_replace( '#http://(www\.)?#', '', $comment->comment_author_url ), '/' ); } return sprintf( - '%s', + '%s', $comment->comment_author_url, $linktext ); @@ -29,7 +29,7 @@ class Tests_Comment_GetCommentAuthorUrlLink extends WP_UnitTestCase { public function test_no_comment() { $url_link = get_comment_author_url_link(); - $this->assertSame( "", $url_link ); + $this->assertSame( '', $url_link ); } public function test_global_comment() {