20 lines
486 B
PHP
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);
|
|
});
|