From e1962acd4ee2ae756b48e5ca39b6423f3a93a359 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 28 Jul 2019 21:53:04 +0200 Subject: [ticket/15886] Use getMockBuilder instead of removed getMock() PHPBB3-15886 --- tests/group/helper_test_case.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/group/helper_test_case.php') diff --git a/tests/group/helper_test_case.php b/tests/group/helper_test_case.php index e298770331..099887bcb0 100644 --- a/tests/group/helper_test_case.php +++ b/tests/group/helper_test_case.php @@ -59,7 +59,7 @@ class phpbb_group_helper_test_case extends phpbb_test_case global $phpbb_dispatcher, $phpbb_root_path, $phpEx; // Set up authentication data for testing - $auth = $this->getMock('\phpbb\auth\auth'); + $auth = $this->getMockBuilder('\phpbb\auth\auth')->disableOriginalConstructor()->getMock(); $auth->expects($this->any()) ->method('acl_get') ->with($this->stringContains('_'), $this->anything()) -- cgit v1.2.1