Merge pull request #23193 from nextcloud/fix/mp/unit_tetss
Fix unit tests
This commit is contained in:
commit
d357f4b10f
|
@ -304,6 +304,9 @@ class DirectoryTest extends \Test\TestCase {
|
||||||
->method('getFileInfo')
|
->method('getFileInfo')
|
||||||
->willReturn($this->info);
|
->willReturn($this->info);
|
||||||
|
|
||||||
|
$mountPoint->method('getMountPoint')
|
||||||
|
->willReturn('/user/files/mymountpoint');
|
||||||
|
|
||||||
$dir = new Directory($this->view, $this->info);
|
$dir = new Directory($this->view, $this->info);
|
||||||
$this->assertEquals([200, -3], $dir->getQuotaInfo()); //200 used, unlimited
|
$this->assertEquals([200, -3], $dir->getQuotaInfo()); //200 used, unlimited
|
||||||
}
|
}
|
||||||
|
@ -339,6 +342,9 @@ class DirectoryTest extends \Test\TestCase {
|
||||||
->method('getMountPoint')
|
->method('getMountPoint')
|
||||||
->willReturn($mountPoint);
|
->willReturn($mountPoint);
|
||||||
|
|
||||||
|
$mountPoint->method('getMountPoint')
|
||||||
|
->willReturn('/user/files/mymountpoint');
|
||||||
|
|
||||||
$this->view->expects($this->once())
|
$this->view->expects($this->once())
|
||||||
->method('getFileInfo')
|
->method('getFileInfo')
|
||||||
->willReturn($this->info);
|
->willReturn($this->info);
|
||||||
|
|
Loading…
Reference in New Issue