summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-05 06:17:29 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-05 06:17:29 +0000
commit5d76008993fc7edc5d4c1aedba8af81b36d1554e (patch)
treeb3d5b4ec8d296f326330d1eb5bef31af66821fd9 /modules/search
parente4c0766ca4cb88cf742989f924f414de354f69cb (diff)
downloadbrdo-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/search')
-rw-r--r--modules/search/search.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/search/search.test b/modules/search/search.test
index 29fa9ef3f..f0d3a6a4b 100644
--- a/modules/search/search.test
+++ b/modules/search/search.test
@@ -363,7 +363,7 @@ class SearchRankingTestCase extends DrupalWebTestCase {
function testRankings() {
// Login with sufficient privileges.
- $this->drupalLogin($this->drupalCreateUser(array('post comments without approval', 'create page content')));
+ $this->drupalLogin($this->drupalCreateUser(array('skip comment approval', 'create page content')));
// Build a list of the rankings to test.
$node_ranks = array('sticky', 'promote', 'relevance', 'recent', 'comments', 'views');
@@ -518,7 +518,7 @@ class SearchRankingTestCase extends DrupalWebTestCase {
*/
function testDoubleRankings() {
// Login with sufficient privileges.
- $this->drupalLogin($this->drupalCreateUser(array('post comments without approval', 'create page content')));
+ $this->drupalLogin($this->drupalCreateUser(array('skip comment approval', 'create page content')));
// See testRankings() above - build a node that will rank high for sticky.
$settings = array(
@@ -695,7 +695,7 @@ class SearchCommentTestCase extends DrupalWebTestCase {
filter_permission_name($full_html_format),
'administer permissions',
'create page content',
- 'post comments without approval',
+ 'skip comment approval',
'access comments',
);
$this->admin_user = $this->drupalCreateUser($permissions);
@@ -949,7 +949,7 @@ class SearchCommentCountToggleTestCase extends DrupalWebTestCase {
parent::setUp('search');
// Create searching user.
- $this->searching_user = $this->drupalCreateUser(array('search content', 'access content', 'access comments', 'post comments without approval'));
+ $this->searching_user = $this->drupalCreateUser(array('search content', 'access content', 'access comments', 'skip comment approval'));
// Create initial nodes.
$node_params = array('type' => 'article', 'body' => array(LANGUAGE_NONE => array(array('value' => 'SearchCommentToggleTestCase'))));
@@ -1082,7 +1082,7 @@ class SearchKeywordsConditions extends DrupalWebTestCase {
function setUp() {
parent::setUp('search', 'search_extra_type');
// Create searching user.
- $this->searching_user = $this->drupalCreateUser(array('search content', 'access content', 'access comments', 'post comments without approval'));
+ $this->searching_user = $this->drupalCreateUser(array('search content', 'access content', 'access comments', 'skip comment approval'));
// Login with sufficient privileges.
$this->drupalLogin($this->searching_user);
// Test with all search modules enabled.