From 87504e27d0155245f1afddba3c13061a31258ab6 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 51bb5b7c8ad..e1f82b704fd 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')); } /**