CommentRowTest.php in Zircon Profile 8
Same filename and directory in other branches
Namespace
Drupal\comment\Tests\ViewsFile
core/modules/comment/src/Tests/Views/CommentRowTest.phpView source
<?php
/**
* @file
* Contains \Drupal\comment\Tests\Views\CommentRowTest.
*/
namespace Drupal\comment\Tests\Views;
/**
* Tests the comment row plugin.
*
* @group comment
*/
class CommentRowTest extends CommentTestBase {
/**
* Views used by this test.
*
* @var array
*/
public static $testViews = array(
'test_comment_row',
);
/**
* Test comment row.
*/
public function testCommentRow() {
$this
->drupalGet('test-comment-row');
$result = $this
->xpath('//article[contains(@class, "comment")]');
$this
->assertEqual(1, count($result), 'One rendered comment found.');
}
}
Classes
Name | Description |
---|---|
CommentRowTest | Tests the comment row plugin. |