From f99d1a7a51116f04e606c149712068b1cce67fbc Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 22 Jun 2023 14:33:27 +0700 Subject: [PATCH] [ticket/16470] Remove tests for user_lastvisit vs session_time sync PHPBB3-16470 PHPBB3-14173 --- tests/session/garbage_collection_test.php | 32 ----------------------- 1 file changed, 32 deletions(-) diff --git a/tests/session/garbage_collection_test.php b/tests/session/garbage_collection_test.php index 9080478a28..d287e1145d 100644 --- a/tests/session/garbage_collection_test.php +++ b/tests/session/garbage_collection_test.php @@ -60,22 +60,6 @@ class phpbb_session_garbage_collection_test extends phpbb_session_test_case '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 $config['captcha_plugin'] = 'core.captcha.plugins.nogd'; $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.' ); - - $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()