summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-08 11:35:32 +0200
committerJulius Härtl <jus@bitgrid.net>2020-09-08 11:35:32 +0200
commit74747163d642e6be8d26700447357699ee673d05 (patch)
treeefeef626506f16d60610a138f4219929ba810f50 /tests
parent87e5fd0d2c46c1a97050309d37864d0acb5aa8d0 (diff)
downloadnextcloud-server-74747163d642e6be8d26700447357699ee673d05.tar.gz
nextcloud-server-74747163d642e6be8d26700447357699ee673d05.zip
Make sure tests cover the new mkdir behaviour on 0 quota
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Storage/Wrapper/QuotaTest.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/QuotaTest.php b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
index 65cfe30eb1c..651ee975ab2 100644
--- a/tests/lib/Files/Storage/Wrapper/QuotaTest.php
+++ b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
@@ -211,7 +211,17 @@ 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() {