From 12519e614f6c01cf7b0728fc231ede7d6dfa591a Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Tue, 24 Sep 2019 11:15:46 +0545 Subject: [PATCH] Fix #36114: documentation about uploadwriteonly permission --- tests/TestHelpers/SharingHelper.php | 11 +++-------- tests/acceptance/features/bootstrap/Sharing.php | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/TestHelpers/SharingHelper.php b/tests/TestHelpers/SharingHelper.php index 07bdd3d857c0..c974cdfd3a2c 100644 --- a/tests/TestHelpers/SharingHelper.php +++ b/tests/TestHelpers/SharingHelper.php @@ -63,13 +63,10 @@ class SharingHelper { * share with. * @param string|int|string[]|int[]|null $permissions The permissions to set on the share. * 1 = read; 2 = update; 4 = create; - * 8 = delete; 16 = share; 31 = all - * 15 = change - * 5 = uploadwriteonly + * 8 = delete; 16 = share * (default: 31, for public shares: 1) - * Pass either the (total) number, - * or the keyword, - * or an array of keywords or numbers. + * Pass either the (total) number or array of numbers, + * or any of the above keywords or array of keywords. * @param string|null $linkName A (human-readable) name for the share, * which can be up to 64 characters in length. * @param string|null $expireDate **NOT IMPLEMENTED** @@ -156,9 +153,7 @@ public static function createShare( * 'update' => 2 * 'create' => 4 * 'delete' => 8 - * 'change' => 15 * 'share' => 16 - * 'all' => 31 * * @param string[]|string|int|int[] $permissions * diff --git a/tests/acceptance/features/bootstrap/Sharing.php b/tests/acceptance/features/bootstrap/Sharing.php index 9dfecac36137..d616f4454061 100644 --- a/tests/acceptance/features/bootstrap/Sharing.php +++ b/tests/acceptance/features/bootstrap/Sharing.php @@ -172,7 +172,7 @@ private function waitToCreateShare() { * | | 1 = read; 2 = update; 4 = create; | * | | 8 = delete; 16 = share; 31 = all | * | | 15 = change | - * | | 7 = uploadwriteonly | + * | | 5 = uploadwriteonly | * | | (default: 31, for public shares: 1) | * | | Pass either the (total) number, | * | | or the keyword, |