public function RowRssTest::testRssRow

Test comment rss output.

File

drupal/core/modules/comment/lib/Drupal/comment/Tests/Views/RowRssTest.php, line 35
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->created->value), 'The right pubDate appears in the rss output.');
}