public function CommentRowTest::testCommentRow in Drupal 8
Same name and namespace in other branches
- 9 core/modules/comment/tests/src/Functional/Views/CommentRowTest.php \Drupal\Tests\comment\Functional\Views\CommentRowTest::testCommentRow()
Test 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\ViewsCode
public function testCommentRow() {
$this
->drupalGet('test-comment-row');
$result = $this
->xpath('//article[contains(@class, "comment")]');
$this
->assertCount(1, $result, 'One rendered comment found.');
}