aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-18 15:45:20 +0200
committerRobin Appelman <robin@icewind.nl>2024-09-19 11:04:36 +0200
commit9cf22beb3b77cc59a5bac89851dd84fb9cd1a6e3 (patch)
tree081c4115e679196fc48c4f668641c365993cd397
parent4375314e2575004c2b591d81f4d6d9573a667350 (diff)
downloadnextcloud-server-backport/48160/stable30.tar.gz
nextcloud-server-backport/48160/stable30.zip
test: fix ShareControllerTest.phpbackport/48160/stable30
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_sharing/tests/Controller/ShareControllerTest.php25
1 files changed, 4 insertions, 21 deletions
diff --git a/apps/files_sharing/tests/Controller/ShareControllerTest.php b/apps/files_sharing/tests/Controller/ShareControllerTest.php
index 79b90d8a156..545ddd81f7a 100644
--- a/apps/files_sharing/tests/Controller/ShareControllerTest.php
+++ b/apps/files_sharing/tests/Controller/ShareControllerTest.php
@@ -333,27 +333,10 @@ class ShareControllerTest extends \Test\TestCase {
'mimetype' => 'text/plain',
'dirToken' => 'token',
'sharingToken' => 'token',
- 'server2serversharing' => true,
- 'protected' => 'true',
- 'dir' => '',
- 'downloadURL' => 'downloadURL',
- 'fileSize' => '33 B',
- 'nonHumanFileSize' => 33,
- 'maxSizeAnimateGif' => 10,
- 'previewSupported' => true,
- 'previewEnabled' => true,
- 'previewMaxX' => 1024,
- 'previewMaxY' => 1024,
- 'hideFileList' => false,
- 'shareOwner' => 'ownerDisplay',
- 'disclaimer' => 'My disclaimer text',
- 'shareUrl' => 'shareUrl',
- 'previewImage' => 'previewImage',
- 'previewURL' => 'downloadURL',
- 'note' => $note,
- 'hideDownload' => false,
- 'showgridview' => false,
- 'label' => ''
+ 'sharePermissions' => (Constants::PERMISSION_READ | Constants::PERMISSION_UPDATE),
+ 'filename' => $filename,
+ 'view' => $view,
+ 'fileId' => 111,
];
$csp = new \OCP\AppFramework\Http\ContentSecurityPolicy();