From af884c3888c9db680fa11b8fd7804265f4c71960 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 6 Sep 2008 15:20:09 +0000 Subject: #302763 by DamZ: Fixing test failures, removing legacy globals check cruft. --- modules/simpletest/tests/session.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/session.test b/modules/simpletest/tests/session.test index b4835832d..2e564e0bf 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($_SERVER['REQUEST_TIME'] + 1), 0, t('Correctly returned 0 sessions newer than the current time.'), t('Session')); + $this->assertEqual(sess_count(time() + 1), 0, t('Correctly returned 0 sessions newer than the current time.'), t('Session')); } -- cgit v1.2.3