db backup prior to drupal security update
[yaffs-website] / web / core / modules / comment / src / Tests / Views / CommentRowTest.php
1 <?php
2
3 namespace Drupal\comment\Tests\Views;
4
5 /**
6  * Tests the comment row plugin.
7  *
8  * @group comment
9  */
10 class CommentRowTest extends CommentTestBase {
11
12   /**
13    * Views used by this test.
14    *
15    * @var array
16    */
17   public static $testViews = ['test_comment_row'];
18
19   /**
20    * Test comment row.
21    */
22   public function testCommentRow() {
23     $this->drupalGet('test-comment-row');
24
25     $result = $this->xpath('//article[contains(@class, "comment")]');
26     $this->assertEqual(1, count($result), 'One rendered comment found.');
27   }
28
29 }