diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-10-05 20:02:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-05 20:02:07 +0200 |
commit | d357f4b10fe1b59e1e07bb90641d647522c7bfe2 (patch) | |
tree | 3add0022c2533cc0a0b66c71e54128b4bbdf05f1 | |
parent | db69b1bc43e1f4fe4d363217aac88b8e987b7eda (diff) | |
parent | a1faee8a1e350b57ebbee2c3a14bb4dfb34eb107 (diff) | |
download | nextcloud-server-d357f4b10fe1b59e1e07bb90641d647522c7bfe2.tar.gz nextcloud-server-d357f4b10fe1b59e1e07bb90641d647522c7bfe2.zip |
Merge pull request #23193 from nextcloud/fix/mp/unit_tetss
Fix unit tests
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php b/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php index 6e0cac8e9cc..e292b6794da 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DirectoryTest.php +++ b/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); |