Issue #3153468 by mondrake, mohrerao, mallezie, smustgrave, meena.bisht,...
Issue #3153468 by mondrake, mohrerao, mallezie, smustgrave, meena.bisht, naresh_bavaskar, hash6, ravi.shankar, Hardik_Patel_12, longwave, xjm: Strip HTML tags when using assertEquals() to compare markup
$this->assertEquals((string)$approve_comment,Link::fromTextAndUrl('Approve',$url)->toString(),'Found a comment approve link for an unapproved comment.');
$this->assertSame((string)$approve_comment,(string)Link::fromTextAndUrl('Approve',$url)->toString(),'Found a comment approve link for an unapproved comment.');
// Approve the comment.
$comment->setPublished();
@@ -182,7 +182,7 @@ public function testLinkReply() {
'field_name'=>'comment',
'pid'=>$comment->id(),
]);
$this->assertEquals((string)$replyto_comment,Link::fromTextAndUrl('Reply',$url)->toString(),'Found the comment reply link as an admin user.');
$this->assertSame((string)$replyto_comment,(string)Link::fromTextAndUrl('Reply',$url)->toString(),'Found the comment reply link as an admin user.');
// Check if I can see the reply link as an anonymous user.