[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
This commit is contained in:
Andy Chase 2013-06-25 12:42:19 -07:00
parent c29cca1a75
commit 4c432fecc7

View file

@ -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),