mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +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();
|
parent::setUp();
|
||||||
|
|
||||||
global $auth, $user;
|
global $auth, $phpbb_dispatcher, $user;
|
||||||
$auth = $this->getMock('auth');
|
$auth = $this->getMock('\phpbb\auth\auth');
|
||||||
$auth->expects($this->any())
|
$auth->expects($this->any())
|
||||||
->method('acl_get')
|
->method('acl_get')
|
||||||
->with($this->stringContains('_'), $this->anything())
|
->with($this->stringContains('_'), $this->anything())
|
||||||
->will($this->returnValueMap(array(
|
->will($this->returnValueMap(array(
|
||||||
array('u_viewprofile', true),
|
array('u_viewprofile', true),
|
||||||
)));
|
)));
|
||||||
|
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
|
||||||
$user->data['user_id'] = ANONYMOUS;
|
$user->data['user_id'] = ANONYMOUS;
|
||||||
$user->lang['GUEST'] = 'Guest';
|
$user->lang['GUEST'] = 'Guest';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue