aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-25 16:41:15 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-11-23 09:29:01 +0100
commit5cd5245ca8b7b37156476ad128131ac5abc3891c (patch)
tree639f8240332f03dc7fe18ecbf8f6ac88f832bafe /apps/dav/tests
parent5a20e20e9ea9adbabe73afa5d2096575de5503ea (diff)
downloadnextcloud-server-5cd5245ca8b7b37156476ad128131ac5abc3891c.tar.gz
nextcloud-server-5cd5245ca8b7b37156476ad128131ac5abc3891c.zip
Fix dav application tests and code for PHP 8.1
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
index 1d1329bbb3c..f73434b33b6 100644
--- a/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/FilesReportPluginTest.php
@@ -229,6 +229,9 @@ class FilesReportPluginTest extends \Test\TestCase {
$reportTargetNode = $this->getMockBuilder(Directory::class)
->disableOriginalConstructor()
->getMock();
+ $reportTargetNode->expects($this->any())
+ ->method('getPath')
+ ->willReturn('');
$response = $this->getMockBuilder(ResponseInterface::class)
->disableOriginalConstructor()