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

16 lines
401 B
PHP

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