feat: improved mutability checks for personal data in edit or create mode
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user