[ticket/17107] Fix viewonline helper test

PHPBB3-17107
This commit is contained in:
rxu 2023-05-23 19:26:45 +07:00
parent f5c5d7d1e6
commit 130e7f7e8a
No known key found for this signature in database
GPG key ID: 955F0567380E586A

View file

@ -17,7 +17,11 @@ class phpbb_viewonline_helper_test extends phpbb_test_case
{ {
parent::setUp(); parent::setUp();
$this->viewonline_helper = new \phpbb\viewonline_helper(new \phpbb\filesystem\filesystem()); $db = $this->getMockBuilder('\phpbb\db\driver\mysqli')
->disableOriginalConstructor()
->getMock();
$this->viewonline_helper = new \phpbb\viewonline_helper(new \phpbb\filesystem\filesystem(), $db);
} }
public function session_pages_data() public function session_pages_data()