TenantAtlas/apps/platform/tests/Feature/Verification/VerificationReportNextStepsSchemaSpec081Test.php
ahmido eced9ad50c Spec 315: implement environment CTA explicit filter contract (#370)
## Summary
- hard-cut environment-owned CTA links into workspace hubs to canonical `environment_id` filters
- add shared workspace-hub environment filter resolution and visible filtered-state rendering across in-scope hubs
- update workspace hub pages, link helpers, and focused test coverage for explicit environment CTA filtering

## Validation
- Not run in this workflow

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #370
2026-05-16 11:50:20 +00:00

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/provider-connections?environment_id=123'],
['label' => '', 'url' => '/admin/invalid'],
['label' => 'Missing URL'],
],
],
]);
expect($report['checks'][0]['next_steps'] ?? [])->toBe([
[
'label' => 'Manage Provider Connections',
'url' => '/admin/provider-connections?environment_id=123',
],
]);
});