aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functions_content
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions_content')
-rw-r--r--tests/functions_content/get_username_string_test.php5
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';
}