@@ -3757,6 +3757,12 @@ public function dataFormatShare() {
37573757 $ folder ->method ('getStorage ' )->willReturn ($ storage );
37583758 $ fileWithPreview ->method ('getStorage ' )->willReturn ($ storage );
37593759
3760+
3761+ $ mountPoint = $ this ->getMockBuilder (IMountPoint::class)->getMock ();
3762+ $ mountPoint ->method ('getMountType ' )->willReturn ('' );
3763+ $ file ->method ('getMountPoint ' )->willReturn ($ mountPoint );
3764+ $ folder ->method ('getMountPoint ' )->willReturn ($ mountPoint );
3765+
37603766 $ owner = $ this ->getMockBuilder (IUser::class)->getMock ();
37613767 $ owner ->method ('getDisplayName ' )->willReturn ('ownerDN ' );
37623768 $ initiator = $ this ->getMockBuilder (IUser::class)->getMock ();
@@ -3911,6 +3917,8 @@ public function dataFormatShare() {
39113917 'can_delete ' => false ,
39123918 'item_size ' => 123456 ,
39133919 'item_mtime ' => 1234567890 ,
3920+ 'is-mount-root ' => false ,
3921+ 'mount-type ' => '' ,
39143922 'attributes ' => null ,
39153923 ], $ share , [], false
39163924 ];
@@ -3962,6 +3970,8 @@ public function dataFormatShare() {
39623970 'can_delete ' => true ,
39633971 'item_size ' => 123456 ,
39643972 'item_mtime ' => 1234567890 ,
3973+ 'is-mount-root ' => false ,
3974+ 'mount-type ' => '' ,
39653975 'attributes ' => null ,
39663976 ], $ share , [], false
39673977 ];
@@ -4014,6 +4024,8 @@ public function dataFormatShare() {
40144024 'can_delete ' => false ,
40154025 'item_size ' => 123456 ,
40164026 'item_mtime ' => 1234567890 ,
4027+ 'is-mount-root ' => false ,
4028+ 'mount-type ' => '' ,
40174029 'attributes ' => null ,
40184030 ], $ share , [], false
40194031 ];
@@ -4063,6 +4075,8 @@ public function dataFormatShare() {
40634075 'can_delete ' => false ,
40644076 'item_size ' => 123456 ,
40654077 'item_mtime ' => 1234567890 ,
4078+ 'is-mount-root ' => false ,
4079+ 'mount-type ' => '' ,
40664080 'attributes ' => null ,
40674081 ], $ share , [], false
40684082 ];
@@ -4119,6 +4133,8 @@ public function dataFormatShare() {
41194133 'can_delete ' => false ,
41204134 'item_size ' => 123456 ,
41214135 'item_mtime ' => 1234567890 ,
4136+ 'is-mount-root ' => false ,
4137+ 'mount-type ' => '' ,
41224138 'attributes ' => null ,
41234139 ], $ share , [], false
41244140 ];
@@ -4175,6 +4191,8 @@ public function dataFormatShare() {
41754191 'can_delete ' => false ,
41764192 'item_size ' => 123456 ,
41774193 'item_mtime ' => 1234567890 ,
4194+ 'is-mount-root ' => false ,
4195+ 'mount-type ' => '' ,
41784196 'attributes ' => null ,
41794197 ], $ share , [], false
41804198 ];
@@ -4225,6 +4243,8 @@ public function dataFormatShare() {
42254243 'can_delete ' => false ,
42264244 'item_size ' => 123456 ,
42274245 'item_mtime ' => 1234567890 ,
4246+ 'is-mount-root ' => false ,
4247+ 'mount-type ' => '' ,
42284248 'attributes ' => null ,
42294249 ], $ share , [], false
42304250 ];
@@ -4275,6 +4295,8 @@ public function dataFormatShare() {
42754295 'can_delete ' => false ,
42764296 'item_size ' => 123456 ,
42774297 'item_mtime ' => 1234567890 ,
4298+ 'is-mount-root ' => false ,
4299+ 'mount-type ' => '' ,
42784300 'attributes ' => null ,
42794301 ], $ share , [], false
42804302 ];
@@ -4328,6 +4350,8 @@ public function dataFormatShare() {
43284350 'can_delete ' => false ,
43294351 'item_size ' => 123456 ,
43304352 'item_mtime ' => 1234567890 ,
4353+ 'is-mount-root ' => false ,
4354+ 'mount-type ' => '' ,
43314355 'attributes ' => null ,
43324356 ], $ share , [], false
43334357 ];
@@ -4378,6 +4402,8 @@ public function dataFormatShare() {
43784402 'can_delete ' => false ,
43794403 'item_size ' => 123456 ,
43804404 'item_mtime ' => 1234567890 ,
4405+ 'is-mount-root ' => false ,
4406+ 'mount-type ' => '' ,
43814407 'attributes ' => null ,
43824408 ], $ share , [], false
43834409 ];
@@ -4428,6 +4454,8 @@ public function dataFormatShare() {
44284454 'can_delete ' => false ,
44294455 'item_size ' => 123456 ,
44304456 'item_mtime ' => 1234567890 ,
4457+ 'is-mount-root ' => false ,
4458+ 'mount-type ' => '' ,
44314459 'attributes ' => null ,
44324460 ], $ share , [], false
44334461 ];
@@ -4495,6 +4523,8 @@ public function dataFormatShare() {
44954523 'password_expiration_time ' => null ,
44964524 'item_size ' => 123456 ,
44974525 'item_mtime ' => 1234567890 ,
4526+ 'is-mount-root ' => false ,
4527+ 'mount-type ' => '' ,
44984528 'attributes ' => null ,
44994529 ], $ share , [], false
45004530 ];
@@ -4548,6 +4578,8 @@ public function dataFormatShare() {
45484578 'password_expiration_time ' => null ,
45494579 'item_size ' => 123456 ,
45504580 'item_mtime ' => 1234567890 ,
4581+ 'is-mount-root ' => false ,
4582+ 'mount-type ' => '' ,
45514583 'attributes ' => null ,
45524584 ], $ share , [], false
45534585 ];
@@ -4599,6 +4631,8 @@ public function dataFormatShare() {
45994631 'can_delete ' => true ,
46004632 'item_size ' => 123456 ,
46014633 'item_mtime ' => 1234567890 ,
4634+ 'is-mount-root ' => false ,
4635+ 'mount-type ' => '' ,
46024636 'attributes ' => null ,
46034637 ], $ share , [], false
46044638 ];
@@ -4702,6 +4736,10 @@ public function dataFormatRoomShare() {
47024736 $ file ->method ('getSize ' )->willReturn (123456 );
47034737 $ file ->method ('getMTime ' )->willReturn (1234567890 );
47044738
4739+ $ mountPoint = $ this ->getMockBuilder (IMountPoint::class)->getMock ();
4740+ $ mountPoint ->method ('getMountType ' )->willReturn ('' );
4741+ $ file ->method ('getMountPoint ' )->willReturn ($ mountPoint );
4742+
47054743 $ cache = $ this ->getMockBuilder ('OCP\Files\Cache\ICache ' )->getMock ();
47064744 $ cache ->method ('getNumericStorageId ' )->willReturn (100 );
47074745 $ storage = $ this ->createMock (Storage::class);
@@ -4757,6 +4795,8 @@ public function dataFormatRoomShare() {
47574795 'can_delete ' => false ,
47584796 'item_size ' => 123456 ,
47594797 'item_mtime ' => 1234567890 ,
4798+ 'is-mount-root ' => false ,
4799+ 'mount-type ' => '' ,
47604800 'attributes ' => null ,
47614801 ], $ share , false , []
47624802 ];
@@ -4806,6 +4846,8 @@ public function dataFormatRoomShare() {
48064846 'can_delete ' => false ,
48074847 'item_size ' => 123456 ,
48084848 'item_mtime ' => 1234567890 ,
4849+ 'is-mount-root ' => false ,
4850+ 'mount-type ' => '' ,
48094851 'attributes ' => null ,
48104852 ], $ share , true , [
48114853 'share_with_displayname ' => 'recipientRoomName '
0 commit comments