From 510510b73d7ec87c0b7d40d80fb924b109fd40ca Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 17 May 2026 11:22:23 -0400 Subject: [PATCH] test(dav): make sure FileInfo is constructed with checksum At least where likely to be needed. Also fixed object type. Signed-off-by: Josh --- apps/dav/tests/unit/Connector/Sabre/FileTest.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/dav/tests/unit/Connector/Sabre/FileTest.php b/apps/dav/tests/unit/Connector/Sabre/FileTest.php index c8d7dc7f7bc..2711f75c0aa 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FileTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FileTest.php @@ -230,7 +230,8 @@ class FileTest extends TestCase { null, [ 'permissions' => Constants::PERMISSION_ALL, - 'type' => FileInfo::TYPE_FOLDER, + 'type' => FileInfo::TYPE_FILE, + 'checksum' => '', ], null ); @@ -794,7 +795,8 @@ class FileTest extends TestCase { null, [ 'permissions' => Constants::PERMISSION_ALL, - 'type' => FileInfo::TYPE_FOLDER, + 'type' => FileInfo::TYPE_FILE, + 'checksum' => '', ], null ); @@ -1025,7 +1027,8 @@ class FileTest extends TestCase { null, [ 'permissions' => Constants::PERMISSION_ALL, - 'type' => FileInfo::TYPE_FOLDER, + 'type' => FileInfo::TYPE_FILE, + 'checksum' => '', ], null );