chore: cleanup, update documentation

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent 03ac430be4
commit 38656e73c5
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