From b08338d124391caa54424367aea1b3aefa517f26 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 56d5c9fee59..3c41cb29974 100644 --- a/apps/dav/tests/unit/Connector/Sabre/FileTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/FileTest.php @@ -238,7 +238,8 @@ class FileTest extends TestCase { null, [ 'permissions' => Constants::PERMISSION_ALL, - 'type' => FileInfo::TYPE_FOLDER, + 'type' => FileInfo::TYPE_FILE, + 'checksum' => '', ], null ); @@ -818,7 +819,8 @@ class FileTest extends TestCase { null, [ 'permissions' => Constants::PERMISSION_ALL, - 'type' => FileInfo::TYPE_FOLDER, + 'type' => FileInfo::TYPE_FILE, + 'checksum' => '', ], null ); @@ -1047,7 +1049,8 @@ class FileTest extends TestCase { null, [ 'permissions' => Constants::PERMISSION_ALL, - 'type' => FileInfo::TYPE_FOLDER, + 'type' => FileInfo::TYPE_FILE, + 'checksum' => '', ], null );