chore: cleanup, update documentation

This commit is contained in:
Björn Fromme
2025-10-23 10:29:37 +02:00
parent 2b272ef789
commit 39d944351c
3 changed files with 49 additions and 14 deletions
@@ -152,10 +152,12 @@ class ParticipantAssignedRoomFieldHandlerTest extends TestCase
// Participant 1 should have a warning notification
$notifications = $participant1->notifications;
$this->assertCount(1, $notifications);
$this->assertSame('warning', $notifications[0]['type']);
$this->assertStringContainsString('Doppelzimmer', $notifications[0]['message']);
$this->assertStringContainsString('wurde von', $notifications[0]['message']);
$this->assertStringContainsString('entfernt', $notifications[0]['message']);
// Get first notification (notifications are keyed by hash, not numeric index)
$firstNotification = reset($notifications);
$this->assertSame('warning', $firstNotification['type']);
$this->assertStringContainsString('Doppelzimmer', $firstNotification['message']);
$this->assertStringContainsString('wurde von', $firstNotification['message']);
$this->assertStringContainsString('entfernt', $firstNotification['message']);
}
public function testProcessFieldDoesNotGenerateNotificationForAssignedParticipant(): void