diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-09-09 17:37:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 17:37:28 +0200 |
commit | cd563023dbceede717b22ce559f3efdf92b1da31 (patch) | |
tree | efd42433722acc642b841a026ac8ad8aada9c495 /tests | |
parent | 22ff60e088379335734bc28f2d1af6e920e204e6 (diff) | |
parent | e6fca0a519397ef140947fca2d730535fa9b4070 (diff) | |
download | nextcloud-server-cd563023dbceede717b22ce559f3efdf92b1da31.tar.gz nextcloud-server-cd563023dbceede717b22ce559f3efdf92b1da31.zip |
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.php | 11 |
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() { |