Index: modules/comment/comment.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.test,v
retrieving revision 1.15
diff -u -p -r1.15 comment.test
--- modules/comment/comment.test	24 Sep 2008 22:38:20 -0000	1.15
+++ modules/comment/comment.test	10 Oct 2008 17:31:13 -0000
@@ -479,6 +479,15 @@ class CommentApprovalTest extends Commen
   }
 
   /**
+   * Test user without post comment permissions.
+   */
+  function testUserNoPermissions() {   
+    // Comments are disabled by the reset in previous function, so we are safe.
+    $this->drupalGet('node/' . $this->node->nid);
+    $this->assertRaw(t('<a href="/user/login?destination=comment/reply/' . $this->node->nid . '%2523comment-form">Login</a> or <a href="/user/register?destination=comment/reply/' . $this->node->nid . '%2523comment-form">register</a> to post comments'), t('User must login to post comments'));
+  }
+
+  /**
    * Test comment approval functionality through admin/content/comment.
    */
   function testApprovalAdminInterface() {
