mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12341] Update test with new class name and dependencies
PHPBB3-12341
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
Reference in New Issue
Block a user