public function CommentLinksAlterTest::testCommentLinksAlter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Tests/CommentLinksAlterTest.php \Drupal\comment\Tests\CommentLinksAlterTest::testCommentLinksAlter()
Tests comment links altering.
File
- core/
modules/ comment/ src/ Tests/ CommentLinksAlterTest.php, line 29 - Contains \Drupal\comment\Tests\CommentLinksAlterTest.
Class
- CommentLinksAlterTest
- Tests comment links altering.
Namespace
Drupal\comment\TestsCode
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'));
}