TenantAtlas/tests/Feature/ManagedTenantOnboardingWizardDbOnlyRenderTest.php
2026-02-01 12:20:09 +01:00

20 lines
486 B
PHP

<?php
declare(strict_types=1);
use App\Filament\Pages\TenantOnboardingWizard;
use Livewire\Livewire;
it('does not invoke Graph client during wizard mount/render', function (): void {
bindFailHardGraphClient();
[$user, $portfolioTenant] = createUserWithTenant(role: 'owner');
$this->actingAs($user);
Livewire::withQueryParams([
'tenant' => (string) $portfolioTenant->external_id,
])->test(TenantOnboardingWizard::class)
->assertStatus(200);
});