From 7ba715d14418f8cb8703528f7373d76492410e38 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 15 Jan 2016 15:18:55 +0100 Subject: fix test --- apps/files_external/controller/userglobalstoragescontroller.php | 1 - apps/files_external/controller/userstoragescontroller.php | 1 + apps/files_external/tests/controller/userstoragescontrollertest.php | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/files_external/controller/userglobalstoragescontroller.php b/apps/files_external/controller/userglobalstoragescontroller.php index 85e843a4235..6d4548754df 100644 --- a/apps/files_external/controller/userglobalstoragescontroller.php +++ b/apps/files_external/controller/userglobalstoragescontroller.php @@ -103,7 +103,6 @@ class UserGlobalStoragesController extends StoragesController { * @param int $id storage id * @return DataResponse * - * @NoCSRFRequired * @NoAdminRequired */ public function show($id) { diff --git a/apps/files_external/controller/userstoragescontroller.php b/apps/files_external/controller/userstoragescontroller.php index afc30de456b..741e906dec1 100644 --- a/apps/files_external/controller/userstoragescontroller.php +++ b/apps/files_external/controller/userstoragescontroller.php @@ -53,6 +53,7 @@ class UserStoragesController extends StoragesController { * @param IRequest $request request object * @param IL10N $l10n l10n service * @param UserStoragesService $userStoragesService storage service + * @param IUserSession $userSession */ public function __construct( $AppName, diff --git a/apps/files_external/tests/controller/userstoragescontrollertest.php b/apps/files_external/tests/controller/userstoragescontrollertest.php index dd761fa9767..671e019fea0 100644 --- a/apps/files_external/tests/controller/userstoragescontrollertest.php +++ b/apps/files_external/tests/controller/userstoragescontrollertest.php @@ -48,7 +48,8 @@ class UserStoragesControllerTest extends StoragesControllerTest { 'files_external', $this->getMock('\OCP\IRequest'), $this->getMock('\OCP\IL10N'), - $this->service + $this->service, + $this->getMock('\OCP\IUserSession') ); } -- cgit v1.2.3