You are here

CommentRowTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/comment/src/Tests/Views/CommentRowTest.php

File

core/modules/comment/src/Tests/Views/CommentRowTest.php
View 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

Namesort descending Description
CommentRowTest Tests the comment row plugin.