From 3946b191a9ad339030783d44ae4e852e4eff7303 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 22 Jan 2009 04:53:00 +0000 Subject: [PATCH] #276554 by stella and John Morahan: Tests for comments as part of an RSS feed. --- modules/comment/comment.test | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/comment/comment.test b/modules/comment/comment.test index fdfd54dbb73..afd04d1f883 100644 --- a/modules/comment/comment.test +++ b/modules/comment/comment.test @@ -17,6 +17,17 @@ class CommentHelperCase extends DrupalWebTestCase { $this->drupalLogout(); } + /** + * 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 = '' . url('node/' . $this->node->nid, array('fragment' => 'comments', 'absolute' => TRUE)) . ''; + $this->assertRaw($raw, t('Comments as part of RSS feed.')); + } + /** * Post comment. *