Skip to content

Commit bd8f251

Browse files
committed
test: add test for calling filesize on non-existing files
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 52a1d63 commit bd8f251

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/lib/Files/Storage/Storage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ public function testStat(): void {
311311

312312
$this->instance->unlink('/lorem.txt');
313313
$this->assertTrue($this->instance->hasUpdated('/', $mtimeStart - 5));
314+
315+
$this->assertFalse($this->instance->filesize('/non-existing-file.txt'));
314316
}
315317

316318
/**

0 commit comments

Comments
 (0)