18 lines
486 B
PHP
18 lines
486 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Models\Tenant;
|
|
|
|
it('shows only the canonical onboarding entry point on the managed-tenant list', function (): void {
|
|
$tenant = Tenant::factory()->create();
|
|
[$user] = createUserWithTenant($tenant, role: 'owner');
|
|
|
|
$response = $this->actingAs($user)
|
|
->get('/admin/managed-tenants')
|
|
->assertOk();
|
|
|
|
$response->assertSee('/admin/managed-tenants/onboarding');
|
|
$response->assertDontSee('/admin/tenants/create');
|
|
});
|