Commit 3946b191 authored by webchick's avatar webchick

#276554 by stella and John Morahan: Tests for comments as part of an RSS feed.

parent 61bbde66
......@@ -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 = '<comments>' . url('node/' . $this->node->nid, array('fragment' => 'comments', 'absolute' => TRUE)) . '</comments>';
$this->assertRaw($raw, t('Comments as part of RSS feed.'));
}
/**
* Post comment.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment