You are here

public function CommentRowTest::testCommentRow in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Tests/Views/CommentRowTest.php \Drupal\comment\Tests\Views\CommentRowTest::testCommentRow()

Test comment row.

File

core/modules/comment/src/Tests/Views/CommentRowTest.php, line 27
Contains \Drupal\comment\Tests\Views\CommentRowTest.

Class

CommentRowTest
Tests the comment row plugin.

Namespace

Drupal\comment\Tests\Views

Code

public function testCommentRow() {
  $this
    ->drupalGet('test-comment-row');
  $result = $this
    ->xpath('//article[contains(@class, "comment")]');
  $this
    ->assertEqual(1, count($result), 'One rendered comment found.');
}