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).
18 lines
418 B
PHP
18 lines
418 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Models\Tenant;
|
|
|
|
it('does not provide legacy onboarding entry points under /admin/new', function (): void {
|
|
$tenant = Tenant::factory()->create();
|
|
[$user] = createUserWithTenant($tenant, role: 'owner');
|
|
|
|
$workspace = $tenant->workspace;
|
|
expect($workspace)->not->toBeNull();
|
|
|
|
$this->actingAs($user)
|
|
->get('/admin/new')
|
|
->assertNotFound();
|
|
});
|