Decoded Output

Download
<?php

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 = ['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.');
  }

}
 ?>

Function Calls

None

Variables

None

Stats

MD50328729da31b036cca67b67a2c5391e3
Eval Count0
Decode Time72 ms

Original Code

<?php

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 = ['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.');
  }

}