Fix unit tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/23193/head
Roeland Jago Douma 5 years ago
parent db69b1bc43
commit a1faee8a1e
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 6
      apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php

@ -304,6 +304,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
}
@ -339,6 +342,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);

Loading…
Cancel
Save