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

merge-requests/26/head
Angie Byron 2009-01-22 04:53:00 +00:00
parent 61bbde66f5
commit 3946b191a9
1 changed files with 11 additions and 0 deletions

View File

@ -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.
*