forked from fa/breadcrumb-the-shire
Added security check report field and variable
This commit is contained in:
@@ -36,6 +36,23 @@ class SecurityCheckProcessTest extends TestCase
|
||||
$this->assertContains('external_systems', $keys);
|
||||
}
|
||||
|
||||
public function testReportStepRequiresOfficialCustomerReportField(): void
|
||||
{
|
||||
$process = new SecurityCheckProcess();
|
||||
|
||||
$fields = $process->stepFields(SecurityCheckProcess::STEP_REPORT);
|
||||
$this->assertSame(
|
||||
[SecurityCheckProcess::FIELD_CUSTOMER_REPORT],
|
||||
array_column($fields, 'key')
|
||||
);
|
||||
|
||||
// The owner must fill it before the final step can be completed.
|
||||
$this->assertContains(
|
||||
SecurityCheckProcess::FIELD_CUSTOMER_REPORT,
|
||||
$process->requiredFieldKeys(SecurityCheckProcess::STEP_REPORT)
|
||||
);
|
||||
}
|
||||
|
||||
public function testRequiredFieldKeysExcludeOptionalFields(): void
|
||||
{
|
||||
$keys = (new SecurityCheckProcess())->requiredFieldKeys(SecurityCheckProcess::STEP_INFORMATION);
|
||||
|
||||
Reference in New Issue
Block a user