mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15886] Mock path helper in group helper tests
PHPBB3-15886
This commit is contained in:
parent
50cec4d54c
commit
f023dd590f
1 changed files with 10 additions and 10 deletions
|
@ -99,16 +99,16 @@ class phpbb_group_helper_test_case extends phpbb_test_case
|
|||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
|
||||
|
||||
// Set up path helper
|
||||
$filesystem = new \phpbb\filesystem\filesystem();
|
||||
$path_helper = new \phpbb\path_helper(
|
||||
new \phpbb\symfony_request(
|
||||
new phpbb_mock_request()
|
||||
),
|
||||
$filesystem,
|
||||
$this->getMock('\phpbb\request\request'),
|
||||
$phpbb_root_path,
|
||||
$phpEx
|
||||
);
|
||||
$path_helper = $this->getMockBuilder('\phpbb\path_helper')
|
||||
->disableOriginalConstructor()
|
||||
->setMethods(array())
|
||||
->getMock();
|
||||
$path_helper->method('get_phpbb_root_path')
|
||||
->willReturn($phpbb_root_path);
|
||||
$path_helper->method('get_php_ext')
|
||||
->willReturn($phpEx);
|
||||
$path_helper->method('update_web_root_path')
|
||||
->will($this->returnArgument(0));
|
||||
|
||||
$user = new \phpbb\user($lang, '\phpbb\datetime');
|
||||
$user->data['user_id'] = ANONYMOUS;
|
||||
|
|
Loading…
Add table
Reference in a new issue