From 453aafee7375c27a348308804607c408d430a818 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 5 Oct 2020 15:49:00 +0200 Subject: [PATCH] Fix unit tests Signed-off-by: Roeland Jago Douma --- apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php index 6e0cac8e9cc..e292b6794da 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php @@ -304,6 +304,9 @@ class DirectoryTest extends \Test\TestCase { ->method('getFileInfo') ->willReturn($this->info); + $mountPoint->method('getMountPoint') + ->willReturn('/user/files/mymountpoint'); + $dir = new Directory($this->view, $this->info); $this->assertEquals([200, -3], $dir->getQuotaInfo()); //200 used, unlimited } @@ -339,6 +342,9 @@ class DirectoryTest extends \Test\TestCase { ->method('getMountPoint') ->willReturn($mountPoint); + $mountPoint->method('getMountPoint') + ->willReturn('/user/files/mymountpoint'); + $this->view->expects($this->once()) ->method('getFileInfo') ->willReturn($this->info); -- 2.39.5