diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-05 06:17:29 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-10-05 06:17:29 +0000 |
commit | 5d76008993fc7edc5d4c1aedba8af81b36d1554e (patch) | |
tree | b3d5b4ec8d296f326330d1eb5bef31af66821fd9 /modules/comment/comment.test | |
parent | e4c0766ca4cb88cf742989f924f414de354f69cb (diff) | |
download | brdo-5d76008993fc7edc5d4c1aedba8af81b36d1554e.tar.gz brdo-5d76008993fc7edc5d4c1aedba8af81b36d1554e.tar.bz2 |
#438224 by dww, sun, netsensei, vordude, et al: 'Post comments without approval' permission name is completely misleading.
Diffstat (limited to 'modules/comment/comment.test')
-rw-r--r-- | modules/comment/comment.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test index 2515a9693..57af9e562 100644 --- a/modules/comment/comment.test +++ b/modules/comment/comment.test @@ -440,7 +440,7 @@ class CommentPreviewTest extends CommentHelperCase { */ function testCommentEditPreview() { $langcode = LANGUAGE_NONE; - $web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'post comments without approval')); + $web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'skip comment approval')); $this->drupalLogin($this->admin_user); $this->setCommentPreview(DRUPAL_OPTIONAL); $this->setCommentForm(TRUE); @@ -495,7 +495,7 @@ class CommentAnonymous extends CommentHelperCase { user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array( 'access comments' => TRUE, 'post comments' => TRUE, - 'post comments without approval' => TRUE, + 'skip comment approval' => TRUE, )); $this->setCommentAnonymous('0'); // Ensure that doesn't require contact info. $this->drupalLogout(); @@ -579,7 +579,7 @@ class CommentAnonymous extends CommentHelperCase { user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array( 'access comments' => FALSE, 'post comments' => FALSE, - 'post comments without approval' => FALSE, + 'skip comment approval' => FALSE, )); // Attempt to view comments while disallowed. @@ -598,7 +598,7 @@ class CommentAnonymous extends CommentHelperCase { user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array( 'access comments' => TRUE, 'post comments' => FALSE, - 'post comments without approval' => FALSE, + 'skip comment approval' => FALSE, )); $this->drupalGet('node/' . $this->node->nid); $this->assertPattern('/<div ([^>]*?)id="comments"([^>]*?)>/', t('Comments were displayed.')); @@ -890,7 +890,7 @@ class CommentApprovalTest extends CommentHelperCase { user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array( 'access comments' => TRUE, 'post comments' => TRUE, - 'post comments without approval' => FALSE, + 'skip comment approval' => FALSE, )); $this->drupalLogin($this->admin_user); $this->setCommentAnonymous('0'); // Ensure that doesn't require contact info. @@ -959,7 +959,7 @@ class CommentApprovalTest extends CommentHelperCase { user_role_change_permissions(DRUPAL_ANONYMOUS_RID, array( 'access comments' => TRUE, 'post comments' => TRUE, - 'post comments without approval' => FALSE, + 'skip comment approval' => FALSE, )); $this->drupalLogin($this->admin_user); $this->setCommentAnonymous('0'); // Ensure that doesn't require contact info. |