Make sure tests cover the new mkdir behaviour on 0 quota
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
87e5fd0d2c
commit
74747163d6
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue