diff options
author | Oliver Schramm <oliver.schramm97@gmail.com> | 2014-04-02 21:01:09 +0200 |
---|---|---|
committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2014-04-02 21:01:09 +0200 |
commit | 2b6145da0a439e4a6ef509bc9df10c22c5679108 (patch) | |
tree | be83f926786177c9f4965f71c1bd04a2264e798d /tests/functions_content | |
parent | b64fcf4e53df399db911f45b20f3648c0688c5a6 (diff) | |
download | forums-2b6145da0a439e4a6ef509bc9df10c22c5679108.tar forums-2b6145da0a439e4a6ef509bc9df10c22c5679108.tar.gz forums-2b6145da0a439e4a6ef509bc9df10c22c5679108.tar.bz2 forums-2b6145da0a439e4a6ef509bc9df10c22c5679108.tar.xz forums-2b6145da0a439e4a6ef509bc9df10c22c5679108.zip |
[ticket/12341] Update test with new class name and dependencies
PHPBB3-12341
Diffstat (limited to 'tests/functions_content')
-rw-r--r-- | tests/functions_content/get_username_string_test.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/functions_content/get_username_string_test.php b/tests/functions_content/get_username_string_test.php index 48e8936cc1..1f23f19056 100644 --- a/tests/functions_content/get_username_string_test.php +++ b/tests/functions_content/get_username_string_test.php @@ -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'; } |