aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Files/Storage/Wrapper/QuotaTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/QuotaTest.php b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
index f07e6021e4e..22703785c47 100644
--- a/tests/lib/Files/Storage/Wrapper/QuotaTest.php
+++ b/tests/lib/Files/Storage/Wrapper/QuotaTest.php
@@ -10,6 +10,7 @@ namespace Test\Files\Storage\Wrapper;
//ensure the constants are loaded
use OC\Files\Cache\CacheEntry;
use OC\Files\Storage\Local;
+use OCP\Files\NotEnoughSpaceException;
\OC::$loader->load('\OC\Files\Filesystem');
@@ -211,7 +212,8 @@ class QuotaTest extends \Test\Files\Storage\Storage {
public function testNoMkdirQuotaZero(): void {
$instance = $this->getLimitedStorage(0.0);
$this->assertFalse($instance->mkdir('files'));
- $this->assertFalse($instance->mkdir('files/foobar'));
+ $this->expectException(NotEnoughSpaceException::class);
+ $instance->mkdir('files/foobar');
}
public function testMkdirQuotaZeroTrashbin(): void {