Commit 90002b08 authored by greggles's avatar greggles

#932012 by Gábor Hojtsy, Dave Reid: post comments without approval permission...

#932012 by Gábor Hojtsy, Dave Reid: post comments without approval permission renamed, breaks simpletests
parent a3b8c2fa
......@@ -43,7 +43,7 @@ class CommentNotifyTestCase extends DrupalWebTestCase {
$this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => NODE_PROMOTED, 'comment' => COMMENT_NODE_OPEN));
// Allow anonymous users to post comments and get notifications.
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access comments', 'access content', 'post comments', 'post comments without approval', 'subscribe to comments'));
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access comments', 'access content', 'post comments', 'skip comment approval', 'subscribe to comments'));
$this->drupalLogout();
// Notify type 1 - All comments on the node.
......@@ -117,7 +117,7 @@ class CommentNotifyTestCase extends DrupalWebTestCase {
}
$this->drupalPost('node/' . $node->nid, $edit, t('Save'));
$match = array();
// Get comment ID
preg_match('/#comment-([^"]+)/', $this->getURL(), $match);
......@@ -159,4 +159,4 @@ class CommentNotifyTestCase extends DrupalWebTestCase {
}
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment