Skip to content

Commit dae47de

Browse files
joshtrichardsbackportbot[bot]
authored andcommitted
test(dav): make sure FileInfo is constructed with checksum
At least where likely to be needed. Also fixed object type. Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent 253f574 commit dae47de

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

apps/dav/tests/unit/Connector/Sabre/FileTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ private function doPut(string $path, ?string $viewRoot = null, ?Request $request
238238
null,
239239
[
240240
'permissions' => Constants::PERMISSION_ALL,
241-
'type' => FileInfo::TYPE_FOLDER,
241+
'type' => FileInfo::TYPE_FILE,
242+
'checksum' => '',
242243
],
243244
null
244245
);
@@ -818,7 +819,8 @@ public function testPutLocking(): void {
818819
null,
819820
[
820821
'permissions' => Constants::PERMISSION_ALL,
821-
'type' => FileInfo::TYPE_FOLDER,
822+
'type' => FileInfo::TYPE_FILE,
823+
'checksum' => '',
822824
],
823825
null
824826
);
@@ -1047,7 +1049,8 @@ public function testPutLockExpired(): void {
10471049
null,
10481050
[
10491051
'permissions' => Constants::PERMISSION_ALL,
1050-
'type' => FileInfo::TYPE_FOLDER,
1052+
'type' => FileInfo::TYPE_FILE,
1053+
'checksum' => '',
10511054
],
10521055
null
10531056
);

0 commit comments

Comments
 (0)