summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
index db79ea21b0e..2207f9e6410 100644
--- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
@@ -303,6 +303,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
}
@@ -338,6 +341,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);