summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests/session.test
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-09-06 08:36:22 +0000
committerDries Buytaert <dries@buytaert.net>2008-09-06 08:36:22 +0000
commite5b0e5f76c0695a01d13c55147a8287df8750594 (patch)
treed4acfc3f1d038bccaea83e168fdd380d0dfa0708 /modules/simpletest/tests/session.test
parentcbb639a16ffec82f498ae689818b010e040bf5b4 (diff)
downloadbrdo-e5b0e5f76c0695a01d13c55147a8287df8750594.tar.gz
brdo-e5b0e5f76c0695a01d13c55147a8287df8750594.tar.bz2
- Patch #302763 by Dave Reid, Rob Loach: replace time() by ['REQUEST_TIME'] as per Rasmus' suggestion. Removed drupal_referrer() for consistency.
Diffstat (limited to 'modules/simpletest/tests/session.test')
-rw-r--r--modules/simpletest/tests/session.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/tests/session.test b/modules/simpletest/tests/session.test
index 2e564e0bf..b4835832d 100644
--- a/modules/simpletest/tests/session.test
+++ b/modules/simpletest/tests/session.test
@@ -113,7 +113,7 @@ class SessionTestCase extends DrupalWebTestCase {
$this->assertEqual($authenticated, $this->session_count_authenticated, t('Correctly counted @count authenticated sessions.', array('@count' => $authenticated)), t('Session'));
// Should return 0 sessions from 1 second from now.
- $this->assertEqual(sess_count(time() + 1), 0, t('Correctly returned 0 sessions newer than the current time.'), t('Session'));
+ $this->assertEqual(sess_count($_SERVER['REQUEST_TIME'] + 1), 0, t('Correctly returned 0 sessions newer than the current time.'), t('Session'));
}