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
This commit is contained in:
Sergey Biryukov
2023-04-19 14:49:51 +00:00
parent 219c661ef2
commit bc28f52762

View File

@@ -20,7 +20,7 @@ class Tests_Comment_GetCommentAuthorUrlLink extends WP_UnitTestCase {
$linktext = rtrim( preg_replace( '#http://(www\.)?#', '', $comment->comment_author_url ), '/' );
}
return sprintf(
'<a href=\'%s\' rel=\'external\'>%s</a>',
'<a href="%s" rel="external">%s</a>',
$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( "<a href='' rel='external'></a>", $url_link );
$this->assertSame( '<a href="" rel="external"></a>', $url_link );
}
public function test_global_comment() {