Skip to content

Commit f0d6bb9

Browse files
mejo-backportbot[bot]
authored andcommitted
test(export): set creation date on comments in UserExportTest
Comment::jsonSerialize() now includes creation_time and throws when no creation date is set, which broke both UserExportTest cases. Signed-off-by: Jonas <jonas@freesources.org> Assisted-by: ClaudeCode:claude-opus-5.5
1 parent d4aebc7 commit f0d6bb9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/unit/Command/UserExportTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public function getComment($id) {
9898
$comment = new Comment();
9999
$comment->setActor('users', 'admin');
100100
$comment->setMessage('fake comment' . $id);
101+
$comment->setCreationDateTime(new \DateTime('2026-01-01T00:00:00+00:00'));
101102
return $comment;
102103
}
103104

0 commit comments

Comments
 (0)