[ticket/16470] Remove tests for user_lastvisit vs session_time sync

PHPBB3-16470
PHPBB3-14173
This commit is contained in:
rxu 2023-06-22 14:33:27 +07:00
parent 33dfaa478c
commit f99d1a7a51
No known key found for this signature in database
GPG key ID: 8117904FEDEFDD17

View file

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