diff options
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/drupal_web_test_case.php | 2 | ||||
-rw-r--r-- | modules/simpletest/tests/session.test | 2 | ||||
-rw-r--r-- | modules/simpletest/tests/xmlrpc.test | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index b5394bfc2..d06b5731c 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -331,7 +331,7 @@ class DrupalWebTestCase { 'body' => $this->randomName(32), 'title' => $this->randomName(8), 'comment' => 2, - 'changed' => time(), + 'changed' => $_SERVER['REQUEST_TIME'], 'format' => FILTER_FORMAT_DEFAULT, 'moderate' => 0, 'promote' => 0, 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')); } diff --git a/modules/simpletest/tests/xmlrpc.test b/modules/simpletest/tests/xmlrpc.test index 799f69081..df44c0ac1 100644 --- a/modules/simpletest/tests/xmlrpc.test +++ b/modules/simpletest/tests/xmlrpc.test @@ -66,7 +66,7 @@ class XMLRPCValidator1IncTestCase extends DrupalWebTestCase { $bool_5 = (($int_5 % 2) == 0); $string_5 = $this->randomName(); $double_5 = (double)(mt_rand(-1000,1000) / 100); - $time_5 = time(); + $time_5 = $_SERVER['REQUEST_TIME']; $base64_5 = $this->randomName(100); $l_res_5 = xmlrpc_test_manyTypesTest($int_5, $bool_5, $string_5, $double_5, xmlrpc_date($time_5), $base64_5); $l_res_5[5] = $l_res_5[5]->data; /* override warpping */ |