U-D/U-E/O5: Prozess-Tester im eigenen Prozess (standardmäßig gesperrt, 15 Negativtests, statischer Wächter), Szenarien und Bericht, Kanalereignisse (API-Eingang ohne Umbau von iCal/Mail), Abschluss nach finanzieller Klärung, Löschfrist 30 Tage
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c255783cec
commit
0689c0a591
68 files changed
+3350
-35
No files matched your search
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Process\Tester\Scenarios;
|
||||
|
||||
use App\Enums\IntakeKind;
|
||||
|
||||
/**
|
||||
* A predefined tester scenario (decision E9): a fixed sequence of events through the same entry points as the real
|
||||
* application; the landlord may change its inputs (dates, guests, missing details, returning guest, kind of failure),
|
||||
* never the sequence.
|
||||
*/
|
||||
abstract class Scenario
|
||||
{
|
||||
abstract public static function key(): string;
|
||||
|
||||
abstract public static function label(): string;
|
||||
|
||||
abstract public static function description(): string;
|
||||
|
||||
/** @return list<IntakeKind> */
|
||||
abstract public static function intakes(): array;
|
||||
|
||||
/**
|
||||
* Inputs the landlord may change, with their defaults.
|
||||
*
|
||||
* @return array<string, array{label: string, default: string|int|bool, type: 'date'|'int'|'bool'|'select', options?: array<string, string>}>
|
||||
*/
|
||||
public static function inputs(): array
|
||||
{
|
||||
return [
|
||||
'arrival' => ['label' => 'Anreise', 'default' => '+21 days', 'type' => 'date'],
|
||||
'nights' => ['label' => 'Nächte', 'default' => 4, 'type' => 'int'],
|
||||
'guests' => ['label' => 'Personen', 'default' => 2, 'type' => 'int'],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $inputs
|
||||
* @return list<ScenarioEvent>
|
||||
*/
|
||||
abstract public function events(array $inputs): array;
|
||||
}
|
||||
Reference in new issue
Block a user