Add isSecret field to Event entity for hidden-when-online events

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-20 17:06:03 +01:00
parent 146a0d4da0
commit 3cd40f30c0
3 changed files with 31 additions and 1 deletions

View File

@@ -144,6 +144,21 @@ class EventTest extends TestCase
self::assertSame($event, $result);
}
public function testIsSecretDefaultFalse(): void
{
$event = new Event();
self::assertFalse($event->isSecret());
}
public function testSetAndGetIsSecret(): void
{
$event = new Event();
$result = $event->setIsSecret(true);
self::assertTrue($event->isSecret());
self::assertSame($event, $result);
}
public function testSetEventMainPictureFileNullDoesNotUpdateTimestamp(): void
{
$event = new Event();