32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Support\Verification\VerificationReportWriter;
|
|
|
|
it('Spec081 enforces verification next_steps schema as link-only label/url pairs', function (): void {
|
|
$report = VerificationReportWriter::build('provider.connection.check', [
|
|
[
|
|
'key' => 'provider.connection.check',
|
|
'title' => 'Provider Connection',
|
|
'status' => 'fail',
|
|
'severity' => 'high',
|
|
'blocking' => true,
|
|
'reason_code' => 'missing_configuration',
|
|
'message' => 'Missing default provider connection.',
|
|
'next_steps' => [
|
|
['label' => 'Manage Provider Connections', 'url' => '/admin/tenants/example/provider-connections'],
|
|
['label' => '', 'url' => '/admin/invalid'],
|
|
['label' => 'Missing URL'],
|
|
],
|
|
],
|
|
]);
|
|
|
|
expect($report['checks'][0]['next_steps'] ?? [])->toBe([
|
|
[
|
|
'label' => 'Manage Provider Connections',
|
|
'url' => '/admin/tenants/example/provider-connections',
|
|
],
|
|
]);
|
|
});
|