1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-24 18:41:52 +02:00

[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

View File

@@ -17,7 +17,11 @@ class phpbb_viewonline_helper_test extends phpbb_test_case
{
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()