summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-04-05 10:14:55 +0200
committerGitHub <noreply@github.com>2023-04-05 10:14:55 +0200
commit8f550398c4c882eed00f09d8e40b074183b8aa93 (patch)
tree44d5c2d89124844c7a0941373a23c4b3a43ba412 /apps/dav
parent88ab6d452b45c6d80f3bd84f919453286273e5e7 (diff)
parent6633b4ced65f97495b1c123a9283c6f187debf41 (diff)
downloadnextcloud-server-8f550398c4c882eed00f09d8e40b074183b8aa93.tar.gz
nextcloud-server-8f550398c4c882eed00f09d8e40b074183b8aa93.zip
Merge pull request #36836 from nextcloud/fix/view-type-cleanup
Tidy up typing in OC\Files\View
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php3
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php3
2 files changed, 2 insertions, 4 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
index a74cb139966..c6365cf3168 100644
--- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
@@ -63,7 +63,7 @@ class TestViewDirectory extends \OC\Files\View {
return $this->canRename;
}
- public function getRelativePath($path) {
+ public function getRelativePath($path): ?string {
return $path;
}
}
@@ -73,7 +73,6 @@ class TestViewDirectory extends \OC\Files\View {
* @group DB
*/
class DirectoryTest extends \Test\TestCase {
-
use UserTrait;
/** @var \OC\Files\View | \PHPUnit\Framework\MockObject\MockObject */
diff --git a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
index d219888ef15..8d6bfc1764b 100644
--- a/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/ObjectTreeTest.php
@@ -62,8 +62,7 @@ class ObjectTreeTest extends \Test\TestCase {
$view = $this->createMock(View::class);
$view->expects($this->once())
->method('verifyPath')
- ->with($targetParent)
- ->willReturn(true);
+ ->with($targetParent);
$view->expects($this->once())
->method('file_exists')
->with($targetPath)