diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-10-08 15:20:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 15:20:17 +0200 |
commit | 614d8c23a0d628ef3d39b28c760f0988c80ad5a9 (patch) | |
tree | fa2cb84ce94538f19b841ff98e66a48c65cd6c37 /apps/dav | |
parent | e11520e6af983fc234bda5f0f8290ac3424a66a1 (diff) | |
parent | 14e67345472e163be1ec28f70c4f0f2e3596f8f5 (diff) | |
download | nextcloud-server-614d8c23a0d628ef3d39b28c760f0988c80ad5a9.tar.gz nextcloud-server-614d8c23a0d628ef3d39b28c760f0988c80ad5a9.zip |
Merge pull request #48494 from nextcloud/refactor/storage/strong-param-types
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Storage/PublicOwnerWrapper.php | 2 | ||||
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/apps/dav/lib/Storage/PublicOwnerWrapper.php b/apps/dav/lib/Storage/PublicOwnerWrapper.php index 91c1916dc39..635ae04fe64 100644 --- a/apps/dav/lib/Storage/PublicOwnerWrapper.php +++ b/apps/dav/lib/Storage/PublicOwnerWrapper.php @@ -25,7 +25,7 @@ class PublicOwnerWrapper extends Wrapper { $this->owner = $arguments['owner']; } - public function getOwner($path): string|false { + public function getOwner(string $path): string|false { $owner = parent::getOwner($path); if ($owner !== false) { return $owner; diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php index 2e19aec95e8..3490937a543 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php @@ -314,6 +314,10 @@ class DirectoryTest extends \Test\TestCase { ->method('getRelativePath') ->willReturn('/foo'); + $this->info->expects($this->once()) + ->method('getInternalPath') + ->willReturn('/foo'); + $mountPoint->method('getMountPoint') ->willReturn('/user/files/mymountpoint'); @@ -358,6 +362,10 @@ class DirectoryTest extends \Test\TestCase { ->method('getMountPoint') ->willReturn($mountPoint); + $this->info->expects($this->once()) + ->method('getInternalPath') + ->willReturn('/foo'); + $mountPoint->method('getMountPoint') ->willReturn('/user/files/mymountpoint'); |