diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-22 04:53:00 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-22 04:53:00 +0000 |
commit | 3946b191a9ad339030783d44ae4e852e4eff7303 (patch) | |
tree | 2f4701751c86b8cc5543611cb2d7a0b262acaadb | |
parent | 61bbde66f5538d6f2ca8ab39c8c2151683cf7c1a (diff) | |
download | brdo-3946b191a9ad339030783d44ae4e852e4eff7303.tar.gz brdo-3946b191a9ad339030783d44ae4e852e4eff7303.tar.bz2 |
#276554 by stella and John Morahan: Tests for comments as part of an RSS feed.
-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. |