TenantAtlas/tests/Feature/ManagedTenants/OnboardingRedirectTest.php
Ahmed Darrazi 7b0a383182 feat: unified managed tenant onboarding wizard
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).
2026-02-03 18:27:39 +01:00

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();
});