X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FFunctional%2FViews%2FRowRssTest.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Ftests%2Fsrc%2FFunctional%2FViews%2FRowRssTest.php;h=7d61852ef8b65a9590563a0ecb7478e773b770cc;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=0000000000000000000000000000000000000000;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/comment/tests/src/Functional/Views/RowRssTest.php b/web/core/modules/comment/tests/src/Functional/Views/RowRssTest.php new file mode 100644 index 000000000..7d61852ef --- /dev/null +++ b/web/core/modules/comment/tests/src/Functional/Views/RowRssTest.php @@ -0,0 +1,34 @@ +drupalGet('test-comment-rss'); + + // Because the response is XML we can't use the page which depends on an + // HTML tag being present. + $result = $this->getSession()->getDriver()->find('//item'); + $this->assertEqual(count($result), 1, 'Just one comment was found in the rss output.'); + + $this->assertEqual($result[0]->find('xpath', '//pubDate')->getHtml(), gmdate('r', $this->comment->getCreatedTime()), 'The right pubDate appears in the rss output.'); + } + +}