CaseActivities/CaseAutomation sind Fassaden über ProcessRunner. Verhaltensvergleich v0.11: 11 Abläufe und 198 Konstellationen gleich, beabsichtigte Abweichungen I-004/I-005 (F-001/F-002). Volle Suite vor U-B: 785/785. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.1 KiB
PHP
50 lines
1.1 KiB
PHP
<?php
|
||
|
||
namespace Tests\Support\Process;
|
||
|
||
use App\Enums\CaseType;
|
||
use App\Process\Models\InquiryModel;
|
||
use App\Process\Models\Point;
|
||
use App\Process\Models\Variant;
|
||
|
||
/**
|
||
* An A1 model with a variant that inserts the address check at AfterGuestIdentified – only in tests.
|
||
*/
|
||
final class A1WithAddressCheck extends InquiryModel
|
||
{
|
||
public static function key(): string
|
||
{
|
||
return 'a1.offer_address';
|
||
}
|
||
|
||
public static function version(): int
|
||
{
|
||
return 1;
|
||
}
|
||
|
||
public static function label(): string
|
||
{
|
||
return 'Angebot mit Adressprüfung (Test)';
|
||
}
|
||
|
||
public static function description(): string
|
||
{
|
||
return 'Test';
|
||
}
|
||
|
||
public static function caseTypes(): array
|
||
{
|
||
return [CaseType::A1];
|
||
}
|
||
|
||
public static function fixes(): array
|
||
{
|
||
return ['pre_reservation' => true];
|
||
}
|
||
|
||
public function variants(): array
|
||
{
|
||
return [Variant::make('standard', 'Standard'), Variant::make('address_check', 'Mit Adressprüfung')->insert(Point::AfterGuestIdentified, 'guest.address_verification')];
|
||
}
|
||
}
|