diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-02 10:37:20 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-09-06 09:29:27 +0200 |
commit | d13ac20bca932fdcccb1f88f68b35d61aa6871a9 (patch) | |
tree | 3d0bdf66575226d8a7caa8270894cc2b40282bbb /apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php | |
parent | 0c154c1ed779ccd68ea67e3528fad36ad6ac9b34 (diff) | |
download | nextcloud-server-d13ac20bca932fdcccb1f88f68b35d61aa6871a9.tar.gz nextcloud-server-d13ac20bca932fdcccb1f88f68b35d61aa6871a9.zip |
Fix getMock files_external
Diffstat (limited to 'apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php')
-rw-r--r-- | apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php index 6d4aa922c72..72e5dc15147 100644 --- a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php +++ b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php @@ -28,7 +28,9 @@ use OCA\Files_External\Lib\StorageConfig; use OCA\Files_External\NotFoundException; use OCA\Files_External\Service\StoragesService; use OCA\Files_External\Service\UserGlobalStoragesService; +use OCP\IGroupManager; use OCP\IUser; +use OCP\IUserSession; use Test\Traits\UserTrait; /** @@ -63,13 +65,13 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest { $this->user = new \OC\User\User(self::USER_ID, null); /** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject $userSession */ - $userSession = $this->getMock('\OCP\IUserSession'); + $userSession = $this->createMock(IUserSession::class); $userSession ->expects($this->any()) ->method('getUser') ->will($this->returnValue($this->user)); - $this->groupManager = $this->getMock('\OCP\IGroupManager'); + $this->groupManager = $this->createMock(IGroupManager::class); $this->groupManager->method('isInGroup') ->will($this->returnCallback(function ($userId, $groupId) { if ($userId === self::USER_ID) { |