Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3946b191
Commit
3946b191
authored
Jan 22, 2009
by
Angie Byron
Browse files
#276554
by stella and John Morahan: Tests for comments as part of an RSS feed.
parent
61bbde66
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.test
View file @
3946b191
...
...
@@ -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.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment