1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-21 00:02:18 +02:00

Merge remote-tracking branch 'asperous/ticket/11615/creation_test' into develop-olympus

* asperous/ticket/11615/creation_test:
  [ticket/11615] Fix typo in creation_test
  [ticket/11615] Remove magic number in creation_test
  [ticket/11615] Rename class in file to match
  [ticket/11615] Rename init_test to creation_test for clarity
This commit is contained in:
Andreas Fischer 2013-06-27 01:21:28 +02:00
commit e0c572d1d8

View File

@ -10,7 +10,7 @@
require_once dirname(__FILE__) . '/../mock/cache.php';
require_once dirname(__FILE__) . '/testable_factory.php';
class phpbb_session_init_test extends phpbb_database_test_case
class phpbb_session_creation_test extends phpbb_database_test_case
{
public function getDataSet()
{
@ -35,10 +35,11 @@ class phpbb_session_init_test extends phpbb_database_test_case
$this->assertSqlResultEquals(
array(array('session_user_id' => 3)),
$sql,
'Check if exacly one session for user id 3 was created'
'Check if exactly 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),