Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-09-09 18:37:28 +0300
committerGitHub <noreply@github.com>2020-09-09 18:37:28 +0300
commitcd563023dbceede717b22ce559f3efdf92b1da31 (patch)
treeefd42433722acc642b841a026ac8ad8aada9c495 /tests
parent22ff60e088379335734bc28f2d1af6e920e204e6 (diff)
parente6fca0a519397ef140947fca2d730535fa9b4070 (diff)
Merge pull request #22657 from nextcloud/bugfix/noid/quota-trash-creation
Check if quota should be applied to path when creating directories
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Storage/Wrapper/QuotaTest.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/QuotaTest.php b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
index 65cfe30eb1c..199ba5f2e26 100644
--- a/tests/lib/Files/Storage/Wrapper/QuotaTest.php
+++ b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
@@ -211,7 +211,16 @@ class QuotaTest extends \Test\Files\Storage\Storage {
public function testNoMkdirQuotaZero() {
$instance = $this->getLimitedStorage(0.0);
- $this->assertFalse($instance->mkdir('foobar'));
+ $this->assertFalse($instance->mkdir('files'));
+ $this->assertFalse($instance->mkdir('files/foobar'));
+ }
+
+ public function testMkdirQuotaZeroTrashbin() {
+ $instance = $this->getLimitedStorage(0.0);
+ $this->assertTrue($instance->mkdir('files_trashbin'));
+ $this->assertTrue($instance->mkdir('files_trashbin/files'));
+ $this->assertTrue($instance->mkdir('files_versions'));
+ $this->assertTrue($instance->mkdir('cache'));
}
public function testNoTouchQuotaZero() {