From bd8f251ad8eae53db2ace3088c2a9732d575b979 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 24 Feb 2026 15:32:06 +0100 Subject: [PATCH] test: add test for calling filesize on non-existing files Signed-off-by: Robin Appelman --- tests/lib/Files/Storage/Storage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/Files/Storage/Storage.php b/tests/lib/Files/Storage/Storage.php index 60e696739ee..9107d99cd67 100644 --- a/tests/lib/Files/Storage/Storage.php +++ b/tests/lib/Files/Storage/Storage.php @@ -311,6 +311,8 @@ abstract class Storage extends \Test\TestCase { $this->instance->unlink('/lorem.txt'); $this->assertTrue($this->instance->hasUpdated('/', $mtimeStart - 5)); + + $this->assertFalse($this->instance->filesize('/non-existing-file.txt')); } /**