feat: improved mutability checks for personal data in edit or create mode

This commit is contained in:
Björn Fromme committed 2026-03-16 11:59:11 +01:00
1 parent ff39bf365c
commit 43823dbda1
27 files changed
+435 -233

No files matched your search

@@ -77,7 +77,7 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
$this->assertNoViolation();
}
public function testCanceledParticipantSkipsTransportationValidation(): void
public function testCanceledParticipantSkipsValidation(): void
{
$participant = $this->createValidParticipant();
$participant->status = 'S'; // Canceled
@@ -89,22 +89,6 @@ class ParticipantValidatorTest extends ConstraintValidatorTestCase
$this->assertNoViolation();
}
public function testActiveParticipantWithoutTransportationFailsValidation(): void
{
$participant = $this->createValidParticipant();
$participant->status = 'F'; // Active
$participant->transportationOutbound = null;
$participant->transportationInbound = null;
$this->validator->validate($participant, new Participant());
$this->buildViolation('Bitte angeben')
->atPath('property.path.transportationOutbound')
->buildNextViolation('Bitte angeben')
->atPath('property.path.transportationInbound')
->assertRaised();
}
public function testParticipantWithBusTransportationButNoPickupFailsValidation(): void
{
$participant = $this->createValidParticipant();