1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/17176] Fix some PHP 8.x deprecations and clean up test code

PHPBB3-17176
This commit is contained in:
Marc Alexander
2023-09-09 19:47:45 +02:00
parent 20a2ee2682
commit 9fbe00dd45
12 changed files with 67 additions and 5 deletions

View File

@@ -162,7 +162,7 @@ class phpbb_functions_obtain_online_test extends phpbb_database_test_case
global $config, $user, $auth, $phpbb_dispatcher;
$config['load_online_guests'] = $display_guests;
$user = new phpbb_mock_lang();
$user = new phpbb_mock_user();
$user->data['user_id'] = 100;
$user->lang = $this->load_language();
$auth = $this->createMock('\phpbb\auth\auth');