16 lines
401 B
PHP
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');
|
|
});
|