Skip to content

Commit ddddc7b

Browse files
committed
test: fix FileListService test to use internal ID instead of nodeId
Update test assertion to expect internal LibreSign ID (123) in the id field, not the Nextcloud nodeId (456). The nodeId is returned separately in its own field. Signed-off-by: Vitor Mattos <[email protected]>
1 parent ab3bb79 commit ddddc7b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/php/Unit/Service/File/FileListServiceTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ public function testIdFieldUsesNodeIdInsteadOfFileId(): void {
112112
$service = $this->getService();
113113
$result = $service->formatSingleFile($this->user, $file);
114114

115-
$this->assertEquals(456, $result['id']);
115+
$this->assertEquals(123, $result['id']);
116+
$this->assertEquals(456, $result['nodeId']);
116117
$this->assertArrayNotHasKey('fileId', $result);
117118
}
118119

0 commit comments

Comments
 (0)