summaryrefslogtreecommitdiff
path: root/modules/comment/comment.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-05-03 07:39:39 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-05-03 07:39:39 +0000
commit0497b10ec9705c18d9ed9c263f89d3549c1ae7f2 (patch)
treeba0f915db5ae42e36a3221ba2fae3f525080a8f9 /modules/comment/comment.test
parent3f2826329126914097c5ba2d320175e01f44ba0e (diff)
downloadbrdo-0497b10ec9705c18d9ed9c263f89d3549c1ae7f2.tar.gz
brdo-0497b10ec9705c18d9ed9c263f89d3549c1ae7f2.tar.bz2
#679960 follow-up by lambic: Add test for 'Notice: undefined variable cids' when there are no comments available.
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r--modules/comment/comment.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 0a0794ddf..52d3eb0cc 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -879,6 +879,11 @@ class CommentApprovalTest extends CommentHelperCase {
));
$this->drupalLogin($this->admin_user);
$this->setCommentAnonymous('0'); // Ensure that doesn't require contact info.
+
+ // Test that the comments page loads correctly when there are no comments
+ $this->drupalGet('admin/content/comment');
+ $this->assertText(t('No comments available.'));
+
$this->drupalLogout();
// Post anonymous comment without contact info.