diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-04-30 06:43:30 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-04-30 06:43:30 +0000 |
commit | f6bfbec8a269f707210ac800990fb4cee66df677 (patch) | |
tree | da2d1ddd3f4e28534151ac578a3c678fc3e37bae | |
parent | 420ee6cbcaa82249cf16eb18da503b1956dd27c0 (diff) | |
download | brdo-f6bfbec8a269f707210ac800990fb4cee66df677.tar.gz brdo-f6bfbec8a269f707210ac800990fb4cee66df677.tar.bz2 |
- Patch #249608 by boombatower: user registration test doesn't set required variables.
-rw-r--r-- | modules/user/user.test | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/user/user.test b/modules/user/user.test index 6428fa17e..6c1570d2b 100644 --- a/modules/user/user.test +++ b/modules/user/user.test @@ -23,6 +23,10 @@ class UserRegistrationTestCase extends DrupalWebTestCase { // Set user registration to "Visitors can create accounts and no administrator approval is required." variable_set('user_register', 1); + // Enable user configurable timezone, and set the default timezone to +1 hour (or +3600 seconds). + variable_set('configurable_timezones', 1); + variable_set('date_default_timezone', 3600); + $edit = array(); $edit['name'] = $name = $this->randomName(); $edit['mail'] = $mail = $edit['name'] .'@example.com'; @@ -42,7 +46,7 @@ class UserRegistrationTestCase extends DrupalWebTestCase { $this->assertEqual($user->threshold, 0, t('Correct treshold field.')); $this->assertEqual($user->theme, '', t('Correct theme field.')); $this->assertEqual($user->signature, '', t('Correct signature field.')); - $this->assertTrue(($user->created > time() - 20 ), 0, t('Correct creation time.')); + $this->assertTrue(($user->created > time() - 20 ), t('Correct creation time.')); $this->assertEqual($user->status, variable_get('user_register', 1) == 1 ? 1 : 0, t('Correct status field.')); $this->assertEqual($user->timezone, variable_get('date_default_timezone', NULL), t('Correct timezone field.')); $this->assertEqual($user->language, '', t('Correct language field.')); |