diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-05-28 13:05:20 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-05-28 13:06:59 +0200 |
commit | 67dd4b018abde6523c283738411590cf85f5308d (patch) | |
tree | 8f6231fc86f96cc2ed7114fb67b5db3779ba3b75 /tests/lib | |
parent | 8b6d8ed4231e0bedf25ee5d088b128e746584d08 (diff) | |
download | nextcloud-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')
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/QuotaTest.php | 5 |
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')); + } } |