#276554 by stella and John Morahan: Tests for comments as part of an RSS feed.
parent
61bbde66f5
commit
3946b191a9
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue