From 74747163d642e6be8d26700447357699ee673d05 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Tue, 8 Sep 2020 11:35:32 +0200 Subject: [PATCH] Make sure tests cover the new mkdir behaviour on 0 quota MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- tests/lib/Files/Storage/Wrapper/QuotaTest.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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() { -- 2.39.5