mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02: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:
@@ -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'
|
'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(
|
$session->check_cookies($this, array(
|
||||||
'u' => array(null, $cookie_expire),
|
'u' => array(null, $cookie_expire),
|
||||||
|
Reference in New Issue
Block a user