Skip to content

Commit 7479c55

Browse files
committed
Fix tests
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent d192e61 commit 7479c55

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/event/listener_test.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ protected function setUp(): void
6969
$user = new \phpbb\user($this->language, '\phpbb\datetime');
7070
$this->user = $user;
7171
$this->user->data['user_form_salt'] = '';
72+
$this->user->data['is_bot'] = false;
73+
$this->user->data['user_type'] = USER_NORMAL;
7274
$user_loader = new \phpbb\user_loader($db, $phpbb_root_path, $phpEx, 'phpbb_users');
7375

7476
$this->controller_helper = $this->getMockBuilder('\phpbb\controller\helper')

0 commit comments

Comments
 (0)