summaryrefslogtreecommitdiff
path: root/modules/block/block.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/block/block.test')
-rw-r--r--modules/block/block.test8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/block/block.test b/modules/block/block.test
index 71d265abb..417a18d5f 100644
--- a/modules/block/block.test
+++ b/modules/block/block.test
@@ -8,6 +8,7 @@
class BlockTestCase extends DrupalWebTestCase {
protected $regions;
+ protected $admin_user;
public static function getInfo() {
return array(
@@ -23,12 +24,12 @@ class BlockTestCase extends DrupalWebTestCase {
// Create and log in an administrative user having access to the Full HTML
// text format.
$full_html_format = db_query_range('SELECT * FROM {filter_format} WHERE name = :name', 0, 1, array(':name' => 'Full HTML'))->fetchObject();
- $admin_user = $this->drupalCreateUser(array(
+ $this->admin_user = $this->drupalCreateUser(array(
'administer blocks',
filter_permission_name($full_html_format),
'access administration pages',
));
- $this->drupalLogin($admin_user);
+ $this->drupalLogin($this->admin_user);
// Define the existing regions
$this->regions = array();
@@ -177,6 +178,9 @@ class BlockTestCase extends DrupalWebTestCase {
$this->drupalGet('user');
$this->assertNoText($title, t('Block was not displayed according to block visibility rules.'));
+ $this->drupalGet('USER/' . $this->admin_user->uid);
+ $this->assertNoText($title, t('Block was not displayed according to block visibility rules regardless of path case.'));
+
// Confirm that the block is not displayed to anonymous users.
$this->drupalLogout();
$this->drupalGet('');