aboutsummaryrefslogtreecommitdiffstats
path: root/tests/session
diff options
context:
space:
mode:
Diffstat (limited to 'tests/session')
-rw-r--r--tests/session/creation_test.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/session/creation_test.php b/tests/session/creation_test.php
index c5558c1577..b9f8b18c63 100644
--- a/tests/session/creation_test.php
+++ b/tests/session/creation_test.php
@@ -38,7 +38,8 @@ class phpbb_session_creation_test extends phpbb_database_test_case
'Check if exacly one session for user id 3 was created'
);
- $cookie_expire = $session->time_now + 31536000; // default is one year
+ $one_year_in_seconds = 365 * 24 * 60 * 60;
+ $cookie_expire = $session->time_now + $one_year_in_seconds;
$session->check_cookies($this, array(
'u' => array(null, $cookie_expire),