mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/12341] Update test with new class name and dependencies
PHPBB3-12341
This commit is contained in:
parent
b64fcf4e53
commit
2b6145da0a
1 changed files with 3 additions and 2 deletions
|
@ -16,14 +16,15 @@ class phpbb_functions_content_get_username_string_test extends phpbb_test_case
|
|||
{
|
||||
parent::setUp();
|
||||
|
||||
global $auth, $user;
|
||||
$auth = $this->getMock('auth');
|
||||
global $auth, $phpbb_dispatcher, $user;
|
||||
$auth = $this->getMock('\phpbb\auth\auth');
|
||||
$auth->expects($this->any())
|
||||
->method('acl_get')
|
||||
->with($this->stringContains('_'), $this->anything())
|
||||
->will($this->returnValueMap(array(
|
||||
array('u_viewprofile', true),
|
||||
)));
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
|
||||
$user->data['user_id'] = ANONYMOUS;
|
||||
$user->lang['GUEST'] = 'Guest';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue