diff options
-rw-r--r-- | modules/comment/comment.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test index fdfd54dbb..afd04d1f8 100644 --- a/modules/comment/comment.test +++ b/modules/comment/comment.test @@ -18,6 +18,17 @@ class CommentHelperCase extends DrupalWebTestCase { } /** + * Test comments as part of RSS feed. + */ + function testCommentRSS() { + $this->drupalLogin($this->web_user); + $comment = $this->postComment($this->node, $this->randomName(), $this->randomName()); + $this->drupalGet('rss.xml'); + $raw = '<comments>' . url('node/' . $this->node->nid, array('fragment' => 'comments', 'absolute' => TRUE)) . '</comments>'; + $this->assertRaw($raw, t('Comments as part of RSS feed.')); + } + + /** * Post comment. * * @param object $node Node to post comment on. |