diff options
-rw-r--r-- | apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php index b622fd5221d..88928d1a217 100644 --- a/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php +++ b/apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php @@ -64,7 +64,7 @@ class UserGlobalStoragesServiceTest extends GlobalStoragesServiceTest { $this->globalStoragesService = $this->service; - $this->user = $this->createMock(IUser::class); + $this->user = new \OC\User\User(self::USER_ID, null, \OC::$server->getEventDispatcher()); /** @var \OCP\IUserSession|\PHPUnit_Framework_MockObject_MockObject $userSession */ $userSession = $this->createMock(IUserSession::class); $userSession |