summaryrefslogtreecommitdiffstats
path: root/tests/lib/Files
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-28 13:05:20 +0200
committerJulius Härtl <jus@bitgrid.net>2019-05-28 13:06:59 +0200
commit67dd4b018abde6523c283738411590cf85f5308d (patch)
tree8f6231fc86f96cc2ed7114fb67b5db3779ba3b75 /tests/lib/Files
parent8b6d8ed4231e0bedf25ee5d088b128e746584d08 (diff)
downloadnextcloud-server-67dd4b018abde6523c283738411590cf85f5308d.tar.gz
nextcloud-server-67dd4b018abde6523c283738411590cf85f5308d.zip
Check for free space on touch
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/lib/Files')
-rw-r--r--tests/lib/Files/Storage/Wrapper/QuotaTest.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/QuotaTest.php b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
index adfd60d0532..0b80467fcc4 100644
--- a/tests/lib/Files/Storage/Wrapper/QuotaTest.php
+++ b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
@@ -213,4 +213,9 @@ class QuotaTest extends \Test\Files\Storage\Storage {
$instance = $this->getLimitedStorage(0.0);
$this->assertFalse($instance->mkdir('foobar'));
}
+
+ public function testNoTouchQuotaZero() {
+ $instance = $this->getLimitedStorage(0.0);
+ $this->assertFalse($instance->touch('foobar'));
+ }
}