From 0497b10ec9705c18d9ed9c263f89d3549c1ae7f2 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 3 May 2010 07:39:39 +0000 Subject: #679960 follow-up by lambic: Add test for 'Notice: undefined variable cids' when there are no comments available. --- modules/comment/comment.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules') 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. -- cgit v1.2.3