3 namespace Drupal\comment\Tests\Views;
6 * Tests the comment rss row plugin.
9 * @see \Drupal\comment\Plugin\views\row\Rss
11 class RowRssTest extends CommentTestBase {
14 * Views used by this test.
18 public static $testViews = ['test_comment_rss'];
21 * Test comment rss output.
23 public function testRssRow() {
24 $this->drupalGet('test-comment-rss');
26 $result = $this->xpath('//item');
27 $this->assertEqual(count($result), 1, 'Just one comment was found in the rss output.');
29 $this->assertEqual($result[0]->pubdate, gmdate('r', $this->comment->getCreatedTime()), 'The right pubDate appears in the rss output.');