summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-10-05 15:49:00 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-11-12 20:27:43 +0100
commit16554001839b08f9b68e869495953fbb6f27950d (patch)
tree49c2be6fd2b7a53203fc7e54a865438a6df7576b /apps
parent141eaab9c4babb883f75fae3b96519dd6a4362a2 (diff)
downloadnextcloud-server-16554001839b08f9b68e869495953fbb6f27950d.tar.gz
nextcloud-server-16554001839b08f9b68e869495953fbb6f27950d.zip
Fix unit tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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 641b03e0781..890c3392cd0 100644
--- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
@@ -299,6 +299,9 @@ class DirectoryTest extends \Test\TestCase {
->method('getMountPoint')
->willReturn($mountPoint);
+ $mountPoint->method('getMountPoint')
+ ->willReturn('/user/files/mymountpoint');
+
$dir = new Directory($this->view, $this->info);
$this->assertEquals([200, -3], $dir->getQuotaInfo()); //200 used, unlimited
}
@@ -334,6 +337,9 @@ class DirectoryTest extends \Test\TestCase {
->method('getMountPoint')
->willReturn($mountPoint);
+ $mountPoint->method('getMountPoint')
+ ->willReturn('/user/files/mymountpoint');
+
$dir = new Directory($this->view, $this->info);
$this->assertEquals([200, 800], $dir->getQuotaInfo()); //200 used, 800 free
}