TenantAtlas/tests/Feature/ManagedTenants/OnboardingRedirectTest.php
2026-02-01 10:49:19 +01:00

15 lines
378 B
PHP

<?php
declare(strict_types=1);
use App\Models\Tenant;
it('redirects /admin/new to the canonical managed-tenant onboarding page', function (): void {
$tenant = Tenant::factory()->create();
[$user] = createUserWithTenant($tenant, role: 'owner');
$this->actingAs($user)
->get('/admin/new')
->assertRedirect('/admin/managed-tenants/onboarding');
});