CommentRowTest.php
Same filename in other branches
Namespace
Drupal\Tests\comment\Functional\ViewsFile
-
core/
modules/ comment/ tests/ src/ Functional/ Views/ CommentRowTest.php
View source
<?php
namespace Drupal\Tests\comment\Functional\Views;
/**
* Tests the comment row plugin.
*
* @group comment
*/
class CommentRowTest extends CommentTestBase {
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* Views used by this test.
*
* @var array
*/
public static $testViews = [
'test_comment_row',
];
/**
* Test comment row.
*/
public function testCommentRow() {
$this->drupalGet('test-comment-row');
$result = $this->xpath('//article[contains(@class, "comment")]');
$this->assertCount(1, $result, 'One rendered comment found.');
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
CommentRowTest | Tests the comment row plugin. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.