You are here

public function CommentLinksAlterTest::testCommentLinksAlter in Zircon Profile 8

Same name and namespace in other branches
  1. 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\Tests

Code

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'));
}