You are here

public function RowRssTest::testRssRow in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Tests/Views/RowRssTest.php \Drupal\comment\Tests\Views\RowRssTest::testRssRow()

Test comment rss output.

File

core/modules/comment/src/Tests/Views/RowRssTest.php, line 28
Contains \Drupal\comment\Tests\Views\RowRssTest.

Class

RowRssTest
Tests the comment rss row plugin.

Namespace

Drupal\comment\Tests\Views

Code

public function testRssRow() {
  $this
    ->drupalGet('test-comment-rss');
  $result = $this
    ->xpath('//item');
  $this
    ->assertEqual(count($result), 1, 'Just one comment was found in the rss output.');
  $this
    ->assertEqual($result[0]->pubdate, gmdate('r', $this->comment
    ->getCreatedTime()), 'The right pubDate appears in the rss output.');
}