feat: pre-flight check of agency bookings
addresses #869bqxr4q
This commit is contained in:
@@ -254,13 +254,13 @@ class ParticipantDataPrefillerTest extends TestCase
|
||||
$this->assertFalse($this->service->shouldPrefillApplicant($filled));
|
||||
}
|
||||
|
||||
public function testDummyTokenMatchesOnlyInCreateMode(): void
|
||||
public function testDummyTokenMatchesInCreateAndEditModes(): void
|
||||
{
|
||||
$participant = new ParticipantDto();
|
||||
$participant->lastName = ParticipantDataPrefiller::TOKEN;
|
||||
|
||||
$this->assertTrue($this->service->isDummyDataFillRequested($participant, BookingDto::MODE_CREATE));
|
||||
$this->assertFalse($this->service->isDummyDataFillRequested($participant, BookingDto::MODE_EDIT));
|
||||
$this->assertTrue($this->service->isDummyDataFillRequested($participant, BookingDto::MODE_EDIT));
|
||||
}
|
||||
|
||||
public function testFillDummyParticipantSetsGeneratedData(): void
|
||||
|
||||
Reference in New Issue
Block a user