mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16470] Remove tests for user_lastvisit vs session_time sync
PHPBB3-16470 PHPBB3-14173
This commit is contained in:
parent
33dfaa478c
commit
f99d1a7a51
1 changed files with 0 additions and 32 deletions
|
@ -60,22 +60,6 @@ class phpbb_session_garbage_collection_test extends phpbb_session_test_case
|
||||||
'Before test, should get recent expired sessions only.'
|
'Before test, should get recent expired sessions only.'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->check_user_session_data(
|
|
||||||
[
|
|
||||||
[
|
|
||||||
'username_clean' => 'bar',
|
|
||||||
'user_lastvisit' => 1400000000,
|
|
||||||
'user_lastpage' => 'oldpage_user_bar.php',
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'username_clean' => 'foo',
|
|
||||||
'user_lastvisit' => 1400000000,
|
|
||||||
'user_lastpage' => 'oldpage_user_foo.php',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
'Before test, users session data is not updated yet.'
|
|
||||||
);
|
|
||||||
|
|
||||||
// There is an error unless the captcha plugin is set
|
// There is an error unless the captcha plugin is set
|
||||||
$config['captcha_plugin'] = 'core.captcha.plugins.nogd';
|
$config['captcha_plugin'] = 'core.captcha.plugins.nogd';
|
||||||
$this->session->session_gc();
|
$this->session->session_gc();
|
||||||
|
@ -83,22 +67,6 @@ class phpbb_session_garbage_collection_test extends phpbb_session_test_case
|
||||||
[],
|
[],
|
||||||
'After garbage collection, all expired sessions should be removed.'
|
'After garbage collection, all expired sessions should be removed.'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->check_user_session_data(
|
|
||||||
[
|
|
||||||
[
|
|
||||||
'username_clean' => 'bar',
|
|
||||||
'user_lastvisit' => '1500000000',
|
|
||||||
'user_lastpage' => 'newpage_user_bar.php',
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'username_clean' => 'foo',
|
|
||||||
'user_lastvisit' => '1500000000',
|
|
||||||
'user_lastpage' => 'newpage_user_foo.php',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
'After garbage collection, users session data should be updated to the recent expired sessions data.'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_cleanup_all()
|
public function test_cleanup_all()
|
||||||
|
|
Loading…
Add table
Reference in a new issue