function CommentRowTest::testCommentRow

Same name and namespace in other branches
  1. 8.9.x core/modules/comment/tests/src/Functional/Views/CommentRowTest.php \Drupal\Tests\comment\Functional\Views\CommentRowTest::testCommentRow()
  2. 10 core/modules/comment/tests/src/Functional/Views/CommentRowTest.php \Drupal\Tests\comment\Functional\Views\CommentRowTest::testCommentRow()
  3. 11.x core/modules/comment/tests/src/Functional/Views/CommentRowTest.php \Drupal\Tests\comment\Functional\Views\CommentRowTest::testCommentRow()

Tests comment row.

File

core/modules/comment/tests/src/Functional/Views/CommentRowTest.php, line 27

Class

CommentRowTest
Tests the comment row plugin.

Namespace

Drupal\Tests\comment\Functional\Views

Code

public function testCommentRow() {
    $this->drupalGet('test-comment-row');
    $this->assertSession()
        ->elementsCount('xpath', '//article[contains(@class, "comment")]', 1);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.