diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-10-05 16:49:00 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-11-12 16:43:17 +0300 |
commit | 565ae7d493bfd9baf6692e6988888d190f440988 (patch) | |
tree | c89117eca7133950475bc2fbd738b3b640124374 /apps/dav/tests | |
parent | f70abf493975b7b75c3111588f94616414ac3311 (diff) |
Fix unit tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/tests')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php | 6 |
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); |