mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[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:
parent
c29cca1a75
commit
4c432fecc7
1 changed files with 2 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue