Implements workspace-scoped managed tenant onboarding wizard (Filament v5 / Livewire v4) with strict RBAC (404/403 semantics), resumable sessions, provider connection selection/creation, verification OperationRun, and optional bootstrap. Removes legacy onboarding entrypoints and adds Pest coverage + spec artifacts (073).
19 lines
564 B
PHP
19 lines
564 B
PHP
<?php
|
|
|
|
use App\Support\Badges\BadgeCatalog;
|
|
use App\Support\Badges\BadgeDomain;
|
|
|
|
it('maps pending tenant status to a Pending warning badge', function (): void {
|
|
$spec = BadgeCatalog::spec(BadgeDomain::TenantStatus, 'pending');
|
|
|
|
expect($spec->label)->toBe('Pending');
|
|
expect($spec->color)->toBe('warning');
|
|
expect($spec->icon)->toBe('heroicon-m-clock');
|
|
});
|
|
|
|
it('normalizes tenant status input before mapping', function (): void {
|
|
$spec = BadgeCatalog::spec(BadgeDomain::TenantStatus, 'PENDING');
|
|
|
|
expect($spec->label)->toBe('Pending');
|
|
});
|