aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-25 14:35:25 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:57:01 +0100
commit0c32b212ed5033a2c09e4e61957e674d0b4632cf (patch)
tree6a6831e13b3b3bd42bcbb44b3a557a7197802b5f /apps/files_external
parentf0e50bcb741ac83b3bc91fbe52248736be33d71c (diff)
downloadnextcloud-server-0c32b212ed5033a2c09e4e61957e674d0b4632cf.tar.gz
nextcloud-server-0c32b212ed5033a2c09e4e61957e674d0b4632cf.zip
Fix files_external tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php2
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