summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit')
-rw-r--r--apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
index 3250361ed17..9f0fbdc3a01 100644
--- a/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
+++ b/apps/dav/tests/unit/DAV/CustomPropertiesBackendTest.php
@@ -29,6 +29,7 @@ use OCA\DAV\DAV\CustomPropertiesBackend;
use OCP\IDBConnection;
use OCP\IUser;
use Sabre\DAV\Exception\NotFound;
+use Sabre\DAV\INode;
use Sabre\DAV\PropFind;
use Sabre\DAV\PropPatch;
use Sabre\DAV\Tree;
@@ -82,9 +83,21 @@ class CustomPropertiesBackendTest extends TestCase {
/**
* @param string $path
- * @return Node|\PHPUnit\Framework\MockObject\MockObject
+ * @return INode|\PHPUnit\Framework\MockObject\MockObject
*/
private function addNode($path) {
+ $node = $this->createMock(INode::class);
+ $node->method('getPath')
+ ->willReturn($path);
+ $this->nodes[$path] = $node;
+ return $node;
+ }
+
+ /**
+ * @param string $path
+ * @return Node|\PHPUnit\Framework\MockObject\MockObject
+ */
+ private function addCalendar($path) {
$node = $this->createMock(Node::class);
$node->method('getPath')
->willReturn($path);