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
Next Next commit
Fix unit tests
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer authored and icewind1991 committed Nov 12, 2020
commit 565ae7d493bfd9baf6692e6988888d190f440988
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 @@ -303,6 +303,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 @@ -338,6 +341,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