Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / comment / tests / src / Functional / Views / CommentRowTest.php
diff --git a/web/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php b/web/core/modules/comment/tests/src/Functional/Views/CommentRowTest.php
new file mode 100644 (file)
index 0000000..7cf3ef3
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+namespace Drupal\Tests\comment\Functional\Views;
+
+/**
+ * Tests the comment row plugin.
+ *
+ * @group comment
+ */
+class CommentRowTest extends CommentTestBase {
+
+  /**
+   * 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->assertEqual(1, count($result), 'One rendered comment found.');
+  }
+
+}