X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FFunctional%2FCommentLinksAlterTest.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FFunctional%2FCommentLinksAlterTest.php;h=e49361b651b81261507af9c7b07b463e43e6102e;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=0000000000000000000000000000000000000000;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php b/web/core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php new file mode 100644 index 000000000..e49361b65 --- /dev/null +++ b/web/core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php @@ -0,0 +1,35 @@ +container->get('state')->set('comment_test_links_alter_enabled', TRUE); + } + + /** + * Tests comment links altering. + */ + public function testCommentLinksAlter() { + $this->drupalLogin($this->webUser); + $comment_text = $this->randomMachineName(); + $subject = $this->randomMachineName(); + $comment = $this->postComment($this->node, $comment_text, $subject); + + $this->drupalGet('node/' . $this->node->id()); + + $this->assertLink(t('Report')); + } + +}