class CommentRowTest

Same name and namespace in other branches
  1. 11.x core/modules/comment/tests/src/Functional/Views/CommentRowTest.php \Drupal\Tests\comment\Functional\Views\CommentRowTest

Tests the comment row plugin.

@group comment

Hierarchy

Expanded class hierarchy of CommentRowTest

File

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

Namespace

Drupal\Tests\comment\Functional\Views
View source
class CommentRowTest extends CommentTestBase {
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * Views used by this test.
   *
   * @var array
   */
  public static $testViews = [
    'test_comment_row',
  ];
  
  /**
   * Tests comment row.
   */
  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.