Skip to content

Commit

Permalink
Merge pull request #23193 from nextcloud/fix/mp/unit_tetss
Browse files Browse the repository at this point in the history
Fix unit tests
  • Loading branch information
rullzer authored Oct 5, 2020
2 parents db69b1b + a1faee8 commit d357f4b
Showing 1 changed file with 6 additions and 0 deletions.
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

0 comments on commit d357f4b

Please sign in to comment.