1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-19 06:51:33 +02:00

[ticket/16276] Further fix PHP nightly tests

PHPBB3-16276
This commit is contained in:
rxu
2019-12-29 02:12:36 +07:00
parent 82e61f501a
commit dcab076221
15 changed files with 41 additions and 18 deletions

View File

@@ -22,7 +22,7 @@ class phpbb_log_delete_test extends phpbb_database_test_case
protected function setUp(): void
{
global $phpbb_root_path, $phpEx, $db, $phpbb_dispatcher, $auth;
global $phpbb_root_path, $phpEx, $db, $phpbb_dispatcher, $auth, $user;
$db = $this->new_dbal();
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();

View File

@@ -411,6 +411,8 @@ class phpbb_log_function_view_log_test extends phpbb_database_test_case
2 => 'plural (%d)',
),
);
$user->session_id = false;
$user->data['user_id'] = 10;
$phpbb_log = new \phpbb\log\log($db, $user, $auth, $phpbb_dispatcher, $phpbb_root_path, 'adm/', $phpEx, LOG_TABLE);