diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-01 22:30:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-01 22:30:31 +0000 |
commit | bdf018696fa40eef6f20316a5c1927bfb240f0eb (patch) | |
tree | a8b4b0a1ca587a1e41c5cefdb2e2f896c3dd5c29 /modules/system/system.test | |
parent | 48377c459b7663cc29e137573d4357823c6a6d98 (diff) | |
download | brdo-bdf018696fa40eef6f20316a5c1927bfb240f0eb.tar.gz brdo-bdf018696fa40eef6f20316a5c1927bfb240f0eb.tar.bz2 |
- Patch #446666 by cweagans: split 'administer site configuration' into more granular permissions.
Diffstat (limited to 'modules/system/system.test')
-rw-r--r-- | modules/system/system.test | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/system/system.test b/modules/system/system.test index 27c327675..ff43b97ec 100644 --- a/modules/system/system.test +++ b/modules/system/system.test @@ -10,7 +10,7 @@ class ModuleTestCase extends DrupalWebTestCase { function setUp() { parent::setUp('system_test'); - $this->admin_user = $this->drupalCreateUser(array('access administration pages', 'administer site configuration')); + $this->admin_user = $this->drupalCreateUser(array('access administration pages', 'administer modules')); $this->drupalLogin($this->admin_user); } @@ -1023,6 +1023,7 @@ class SystemMainContentFallback extends DrupalWebTestCase { $this->admin_user = $this->drupalCreateUser(array( 'access administration pages', 'administer site configuration', + 'administer modules', 'administer blocks', 'administer nodes', )); @@ -1050,7 +1051,7 @@ class SystemMainContentFallback extends DrupalWebTestCase { // At this point, no region is filled and fallback should be triggered. $this->drupalGet('admin/config/system/site-information'); - $this->assertField('site_name', t('Admin interface still availble.')); + $this->assertField('site_name', t('Admin interface still available.')); // Fallback should not trigger when another module is handling content. $this->drupalGet('system-test/main-content-handling'); @@ -1071,7 +1072,7 @@ class SystemMainContentFallback extends DrupalWebTestCase { // Request a user* page and see if it is displayed. $this->drupalLogin($this->web_user); $this->drupalGet('user/' . $this->web_user->uid . '/edit'); - $this->assertField('mail', t('User interface still availble.')); + $this->assertField('mail', t('User interface still available.')); // Enable the block module again. $this->drupalLogin($this->admin_user); @@ -1176,7 +1177,7 @@ class SystemThemeFunctionalTest extends DrupalWebTestCase { function setUp() { parent::setUp(); - $this->admin_user = $this->drupalCreateUser(array('access administration pages', 'administer site configuration', 'bypass node access')); + $this->admin_user = $this->drupalCreateUser(array('access administration pages', 'administer themes', 'bypass node access')); $this->drupalLogin($this->admin_user); $this->node = $this->drupalCreateNode(); } |