Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix unit tests
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer authored and MorrisJobke committed Oct 5, 2020
commit 453aafee7375c27a348308804607c408d430a818
6 changes: 6 additions & 0 deletions apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ public function testGetQuotaInfoUnlimited() {
->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
}
Expand Down Expand Up @@ -339,6 +342,9 @@ public function testGetQuotaInfoSpecific() {
->method('getMountPoint')
->willReturn($mountPoint);

$mountPoint->method('getMountPoint')
->willReturn('/user/files/mymountpoint');

$this->view->expects($this->once())
->method('getFileInfo')
->willReturn($this->info);
Expand Down