]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit tests 23170/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 5 Oct 2020 13:49:00 +0000 (15:49 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Mon, 5 Oct 2020 19:33:40 +0000 (21:33 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php

index 6e0cac8e9cc11802b752eb4c1e161b1cea6b9584..e292b6794dabfe4e6b9b7ad507231e554467c17d 100644 (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);