diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-10-25 00:03:28 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-10-26 10:16:12 +0200 |
commit | ab36980d20feb895d9b33ff5dbaacc2cd9fbd3fc (patch) | |
tree | b5165a41d54f8d9e1fae58a69961a6d1c75fb6b4 /tests/Settings | |
parent | a82b56b1c7146ddb3085f3e03e18be4700d95a0e (diff) | |
download | nextcloud-server-ab36980d20feb895d9b33ff5dbaacc2cd9fbd3fc.tar.gz nextcloud-server-ab36980d20feb895d9b33ff5dbaacc2cd9fbd3fc.zip |
Use ::class in test mocks of dav app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/Settings')
-rw-r--r-- | tests/Settings/Controller/GroupsControllerTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Settings/Controller/GroupsControllerTest.php b/tests/Settings/Controller/GroupsControllerTest.php index 78df5f3a3cb..ecbfa9ea05e 100644 --- a/tests/Settings/Controller/GroupsControllerTest.php +++ b/tests/Settings/Controller/GroupsControllerTest.php @@ -13,6 +13,7 @@ namespace Tests\Settings\Controller; use OC\Group\Group; use OC\Group\MetaData; use OC\Settings\Controller\GroupsController; +use OC\User\User; use OCP\AppFramework\Http; use OCP\AppFramework\Http\DataResponse; use OCP\IGroupManager; @@ -99,7 +100,7 @@ class GroupsControllerTest extends \Test\TestCase { $groups[] = $thirdGroup; $groups[] = $fourthGroup; - $user = $this->getMockBuilder('\OC\User\User') + $user = $this->getMockBuilder(User::class) ->disableOriginalConstructor()->getMock(); $this->userSession ->expects($this->once()) @@ -191,7 +192,7 @@ class GroupsControllerTest extends \Test\TestCase { $groups[] = $thirdGroup; $groups[] = $fourthGroup; - $user = $this->getMockBuilder('\OC\User\User') + $user = $this->getMockBuilder(User::class) ->disableOriginalConstructor()->getMock(); $this->userSession ->expects($this->once()) |