@@ -2040,7 +2040,6 @@ public function testCreateShareGroupNoValidShareWith(): void {
20402040 $ share = $ this ->newShare ();
20412041 $ this ->shareManager ->method ('newShare ' )->willReturn ($ share );
20422042 $ this ->shareManager ->method ('createShare ' )->willReturnArgument (0 );
2043- $ this ->shareManager ->method ('allowGroupSharing ' )->willReturn (true );
20442043
20452044 [$ userFolder , $ path ] = $ this ->getNonSharedUserFile ();
20462045 $ this ->rootFolder ->method ('getUserFolder ' )
@@ -2314,8 +2313,6 @@ public function testCreateShareLinkPassword(): void {
23142313 ->willReturn ([]);
23152314
23162315 $ this ->shareManager ->method ('newShare ' )->willReturn (Server::get (IManager::class)->newShare ());
2317- $ this ->shareManager ->method ('shareApiAllowLinks ' )->willReturn (true );
2318- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
23192316
23202317 $ this ->shareManager ->expects ($ this ->once ())->method ('createShare ' )->with (
23212318 $ this ->callback (function (IShare $ share ) use ($ path ) {
@@ -2353,8 +2350,6 @@ public function testCreateShareLinkSendPasswordByTalk(): void {
23532350 ->willReturn ([]);
23542351
23552352 $ this ->shareManager ->method ('newShare ' )->willReturn (Server::get (IManager::class)->newShare ());
2356- $ this ->shareManager ->method ('shareApiAllowLinks ' )->willReturn (true );
2357- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
23582353
23592354 $ this ->appManager ->method ('isEnabledForUser ' )->with ('spreed ' )->willReturn (true );
23602355
@@ -2400,8 +2395,6 @@ public function testCreateShareLinkSendPasswordByTalkWithTalkDisabled(): void {
24002395 ->willReturn ([]);
24012396
24022397 $ this ->shareManager ->method ('newShare ' )->willReturn (Server::get (IManager::class)->newShare ());
2403- $ this ->shareManager ->method ('shareApiAllowLinks ' )->willReturn (true );
2404- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
24052398
24062399 $ this ->appManager ->method ('isEnabledForUser ' )->with ('spreed ' )->willReturn (false );
24072400
@@ -2438,8 +2431,6 @@ public function testCreateShareValidExpireDate(): void {
24382431 ->willReturn ([]);
24392432
24402433 $ this ->shareManager ->method ('newShare ' )->willReturn (Server::get (IManager::class)->newShare ());
2441- $ this ->shareManager ->method ('shareApiAllowLinks ' )->willReturn (true );
2442- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
24432434
24442435 $ this ->shareManager ->expects ($ this ->once ())->method ('createShare ' )->with (
24452436 $ this ->callback (function (IShare $ share ) use ($ path ) {
@@ -2484,8 +2475,6 @@ public function testCreateShareInvalidExpireDate(): void {
24842475 ->willReturn ([]);
24852476
24862477 $ this ->shareManager ->method ('newShare ' )->willReturn (Server::get (IManager::class)->newShare ());
2487- $ this ->shareManager ->method ('shareApiAllowLinks ' )->willReturn (true );
2488- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
24892478
24902479 $ ocs ->createShare ('valid-path ' , Constants::PERMISSION_ALL , IShare::TYPE_LINK , null , 'false ' , '' , null , 'a1b2d3 ' );
24912480 }
@@ -2555,8 +2544,6 @@ public function testCreateShareRemote(): void {
25552544 }))
25562545 ->willReturnArgument (0 );
25572546
2558- $ this ->shareManager ->method ('outgoingServer2ServerSharesAllowed ' )->willReturn (true );
2559-
25602547 $ expected = new DataResponse ([]);
25612548 $ result = $ ocs ->createShare ('valid-path ' , Constants::PERMISSION_ALL , IShare::TYPE_REMOTE , 'user@example.org ' );
25622549
@@ -2629,8 +2616,6 @@ public function testCreateShareRemoteGroup(): void {
26292616 }))
26302617 ->willReturnArgument (0 );
26312618
2632- $ this ->shareManager ->method ('outgoingServer2ServerGroupSharesAllowed ' )->willReturn (true );
2633-
26342619 $ expected = new DataResponse ([]);
26352620 $ result = $ ocs ->createShare ('valid-path ' , Constants::PERMISSION_ALL , IShare::TYPE_REMOTE_GROUP , 'group@example.org ' );
26362621
@@ -3004,7 +2989,6 @@ public function testUpdateLinkShareSet(): void {
30042989 ->setNode ($ folder );
30052990
30062991 $ this ->shareManager ->method ('getShareById ' )->with ('ocinternal:42 ' )->willReturn ($ share );
3007- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
30082992
30092993 $ this ->shareManager ->expects ($ this ->once ())->method ('updateShare ' )->with (
30102994 $ this ->callback (function (IShare $ share ) {
@@ -3119,7 +3103,6 @@ public function testUpdateLinkShareSetCRUDPermissions($permissions): void {
31193103 ->setNode ($ folder );
31203104
31213105 $ this ->shareManager ->method ('getShareById ' )->with ('ocinternal:42 ' )->willReturn ($ share );
3122- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
31233106 $ this ->shareManager ->method ('getSharedWith ' )->willReturn ([]);
31243107
31253108 $ this ->shareManager
@@ -3202,7 +3185,6 @@ public function testUpdateLinkShareInvalidDate(): void {
32023185 ->setNode ($ folder );
32033186
32043187 $ this ->shareManager ->method ('getShareById ' )->with ('ocinternal:42 ' )->willReturn ($ share );
3205- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
32063188
32073189 $ ocs ->updateShare (42 , null , 'password ' , null , 'true ' , '2000-01-a ' );
32083190 }
@@ -3279,9 +3261,6 @@ public function testUpdateLinkSharePublicUploadOnFile(): void {
32793261 ->method ('getShareById ' )
32803262 ->with ('ocinternal:42 ' )
32813263 ->willReturn ($ share );
3282- $ this ->shareManager
3283- ->method ('shareApiLinkAllowPublicUpload ' )
3284- ->willReturn (true );
32853264 $ this ->shareManager
32863265 ->method ('updateShare ' )
32873266 ->with ($ share )
@@ -3649,7 +3628,6 @@ public function testUpdateLinkSharePublicUploadDoesNotChangeOther(): void {
36493628 ->setNode ($ folder );
36503629
36513630 $ this ->shareManager ->method ('getShareById ' )->with ('ocinternal:42 ' )->willReturn ($ share );
3652- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
36533631
36543632 $ this ->shareManager ->expects ($ this ->once ())->method ('updateShare ' )->with (
36553633 $ this ->callback (function (IShare $ share ) use ($ date ) {
@@ -3710,7 +3688,6 @@ public function testUpdateLinkSharePermissions(): void {
37103688 ->setNode ($ folder );
37113689
37123690 $ this ->shareManager ->method ('getShareById ' )->with ('ocinternal:42 ' )->willReturn ($ share );
3713- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
37143691
37153692 $ this ->shareManager ->expects ($ this ->once ())->method ('updateShare ' )->with (
37163693 $ this ->callback (function (IShare $ share ) use ($ date ): bool {
@@ -3770,7 +3747,6 @@ public function testUpdateLinkSharePermissionsShare(): void {
37703747 ->setNode ($ folder );
37713748
37723749 $ this ->shareManager ->method ('getShareById ' )->with ('ocinternal:42 ' )->willReturn ($ share );
3773- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
37743750
37753751 $ this ->shareManager ->expects ($ this ->once ())
37763752 ->method ('updateShare ' )
@@ -3823,7 +3799,6 @@ public function testUpdateOtherPermissions(): void {
38233799 ->setNode ($ file );
38243800
38253801 $ this ->shareManager ->method ('getShareById ' )->with ('ocinternal:42 ' )->willReturn ($ share );
3826- $ this ->shareManager ->method ('shareApiLinkAllowPublicUpload ' )->willReturn (true );
38273802
38283803 $ this ->shareManager ->expects ($ this ->once ())->method ('updateShare ' )->with (
38293804 $ this ->callback (function (IShare $ share ) {
0 commit comments