diff options
author | Richard Steinmetz <richard@steinmetz.cloud> | 2020-10-11 15:19:30 +0200 |
---|---|---|
committer | Richard Steinmetz <richard@steinmetz.cloud> | 2020-10-13 14:12:42 +0200 |
commit | 89f7e2ab6409ef034ab6d4ce73f45517ae4f5d3f (patch) | |
tree | 16d5295e8e7f89ca64119ac339a0ddbb3c7801cc /apps/files_sharing/tests/ApiTest.php | |
parent | b6364cc483d7904ed0abdf272925d8376e885de0 (diff) | |
download | nextcloud-server-89f7e2ab6409ef034ab6d4ce73f45517ae4f5d3f.tar.gz nextcloud-server-89f7e2ab6409ef034ab6d4ce73f45517ae4f5d3f.zip |
Indicate preview availability in share api responses
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
Diffstat (limited to 'apps/files_sharing/tests/ApiTest.php')
-rw-r--r-- | apps/files_sharing/tests/ApiTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/ApiTest.php b/apps/files_sharing/tests/ApiTest.php index 254915e7859..f1dd5a16105 100644 --- a/apps/files_sharing/tests/ApiTest.php +++ b/apps/files_sharing/tests/ApiTest.php @@ -44,6 +44,7 @@ use OCP\AppFramework\OCS\OCSForbiddenException; use OCP\AppFramework\OCS\OCSNotFoundException; use OCP\IConfig; use OCP\IL10N; +use OCP\IPreview; use OCP\IRequest; use OCP\IServerContainer; use OCP\Share\IShare; @@ -117,6 +118,7 @@ class ApiTest extends TestCase { $appManager = $this->createMock(IAppManager::class); $serverContainer = $this->createMock(IServerContainer::class); $userStatusManager = $this->createMock(IUserStatusManager::class); + $previewManager = $this->createMock(IPreview::class); return new ShareAPIController( self::APP_NAME, @@ -131,7 +133,8 @@ class ApiTest extends TestCase { $config, $appManager, $serverContainer, - $userStatusManager + $userStatusManager, + $previewManager ); } |