aboutsummaryrefslogtreecommitdiffstats
path: root/tests/session/creation_test.php
diff options
context:
space:
mode:
authorAndy Chase <asperous2@gmail.com>2013-06-25 12:42:19 -0700
committerAndy Chase <asperous2@gmail.com>2013-06-26 11:49:36 -0700
commit4c432fecc75473c5f12a70048973a4139bdf1b22 (patch)
tree2a9b7d50673e2074e974f027258e24b215d6289b /tests/session/creation_test.php
parentc29cca1a755461ec2bd63b7cc9292d79ae0508d6 (diff)
downloadforums-4c432fecc75473c5f12a70048973a4139bdf1b22.tar
forums-4c432fecc75473c5f12a70048973a4139bdf1b22.tar.gz
forums-4c432fecc75473c5f12a70048973a4139bdf1b22.tar.bz2
forums-4c432fecc75473c5f12a70048973a4139bdf1b22.tar.xz
forums-4c432fecc75473c5f12a70048973a4139bdf1b22.zip
[ticket/11615] Remove magic number in creation_test
Removing this magic number to its own variable with clean multiplication makes it clear what the number represents. PHPBB3-11615
Diffstat (limited to 'tests/session/creation_test.php')
-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),