Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-05-28 14:05:20 +0300
committerBackportbot <backportbot-noreply@rullzer.com>2019-05-28 16:04:49 +0300
commit77649792813efcf200298a8dfdf3586eaa04b377 (patch)
tree8103179b1048aa82bbd17ed95c20e91e4f7230eb /tests
parent153d9ba9d65732637fa64476ce83e23b7594a787 (diff)
Check for free space on touch
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests')
-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'));
+ }
}