Merge pull request #23193 from nextcloud/fix/mp/unit_tetss

Fix unit tests
This commit is contained in:
Roeland Jago Douma 2020-10-05 20:02:07 +02:00 committed by GitHub
commit d357f4b10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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);