CommentRowTest.php in Drupal 10
File
core/modules/comment/tests/src/Functional/Views/CommentRowTest.php
View source
<?php
namespace Drupal\Tests\comment\Functional\Views;
class CommentRowTest extends CommentTestBase {
protected $defaultTheme = 'stark';
public static $testViews = [
'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.');
}
}