summaryrefslogtreecommitdiff
path: root/modules/system/system.test
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-15 20:48:10 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-09-15 20:48:10 +0000
commit161a9970f77ce6813e710e08076f5d4fc494259a (patch)
tree3d349326150a59d58bbaf868148fd197e8ca903c /modules/system/system.test
parentcf987be12d600a513f5efa779602ad4b6682e147 (diff)
downloadbrdo-161a9970f77ce6813e710e08076f5d4fc494259a.tar.gz
brdo-161a9970f77ce6813e710e08076f5d4fc494259a.tar.bz2
#308534 by Dave Reid: Remove stray whitespace core-wide.
Diffstat (limited to 'modules/system/system.test')
-rw-r--r--modules/system/system.test17
1 files changed, 8 insertions, 9 deletions
diff --git a/modules/system/system.test b/modules/system/system.test
index 5af5df5d7..29b4e73eb 100644
--- a/modules/system/system.test
+++ b/modules/system/system.test
@@ -323,7 +323,7 @@ class AdminMetaTagTestCase extends DrupalWebTestCase {
class PageNotFoundTestCase extends DrupalWebTestCase {
protected $admin_user;
-
+
/**
* Implementation of getInfo().
*/
@@ -334,7 +334,7 @@ class PageNotFoundTestCase extends DrupalWebTestCase {
'group' => t('System')
);
}
-
+
/**
* Implementation of setUp().
*/
@@ -349,7 +349,7 @@ class PageNotFoundTestCase extends DrupalWebTestCase {
function testPageNotFound() {
$this->drupalGet($this->randomName(10));
$this->assertText(t('Page not found'), t('Found the default 404 page'));
-
+
$edit = array(
'title' => $this->randomName(10),
'body' => $this->randomName(100)
@@ -358,27 +358,26 @@ class PageNotFoundTestCase extends DrupalWebTestCase {
// Use a custom 404 page.
$this->drupalPost('admin/settings/error-reporting', array('site_404' => 'node/' . $node->nid), t('Save configuration'));
-
+
$this->drupalGet($this->randomName(10));
$this->assertText($node->title, t('Found the custom 404 page'));
-
+
// Logout and check that the user login block is not shown on custom 404 pages.
$this->drupalLogout();
-
+
$this->drupalGet($this->randomName(10));
$this->assertText($node->title, t('Found the custom 404 page'));
$this->assertNoText(t('User login'), t('Blocks are not shown on the custom 404 page'));
-
+
// Log back in and remove the custom 404 page.
$this->drupalLogin($this->admin_user);
$this->drupalPost('admin/settings/error-reporting', array(), t('Reset to defaults'));
// Logout and check that the user login block is not shown on default 404 pages.
$this->drupalLogout();
-
+
$this->drupalGet($this->randomName(10));
$this->assertText(t('Page not found'), t('Found the default 404 page'));
$this->assertNoText(t('User login'), t('Blocks are not shown on the default 404 page'));
}
}
-