From 0c32b212ed5033a2c09e4e61957e674d0b4632cf Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 25 Feb 2019 14:35:25 +0100 Subject: Fix files_external tests Signed-off-by: Joas Schilling --- apps/files_external/tests/Service/UserGlobalStoragesServiceTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3