diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-07-20 02:05:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-07-20 02:05:13 +0000 |
commit | 2c225982038a53bf432c4d60fd6468b8811340c9 (patch) | |
tree | 28a767c2b59f6b2a01d3ec99a8b619b520eaf381 /modules/comment/comment.test | |
parent | 71294994bda36f27370dc7747c0fa80d2655e2df (diff) | |
download | brdo-2c225982038a53bf432c4d60fd6468b8811340c9.tar.gz brdo-2c225982038a53bf432c4d60fd6468b8811340c9.tar.bz2 |
- Patch #364159 by David_Rothstein, MichaelCole, rszrama, ergonlogic: enable 'access comments' permission for anonymous users by default.
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r-- | modules/comment/comment.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test index cf5376fec..54a39bf01 100644 --- a/modules/comment/comment.test +++ b/modules/comment/comment.test @@ -1022,11 +1022,16 @@ class CommentBlockFunctionalTest extends CommentHelperCase { $comment2 = $this->postComment($this->node, $this->randomName(), $this->randomName()); $comment3 = $this->postComment($this->node, $this->randomName()); - // Test that a user without the 'access comments' permission can not see the block. + // Test that a user without the 'access comments' permission cannot see the + // block. $this->drupalLogout(); + user_role_revoke_permissions(DRUPAL_ANONYMOUS_RID, array('access comments')); $this->drupalGet(''); $this->assertNoText($block['title'], t('Block was not found.')); + user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access comments')); + // Test that a user with the 'access comments' permission can see the + // block. $this->drupalLogin($this->web_user); $this->drupalGet(''); $this->assertText($block['title'], t('Block was found.')); |