mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user