22 lines
570 B
PHP
22 lines
570 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Illuminate\Support\Facades\Queue;
|
|
|
|
it('renders the canonical required permissions page without Graph, outbound HTTP, or queue dispatches', function (): void {
|
|
bindFailHardGraphClient();
|
|
|
|
[$user, $tenant] = createUserWithTenant(role: 'readonly');
|
|
|
|
Queue::fake();
|
|
|
|
assertNoOutboundHttp(function () use ($user, $tenant): void {
|
|
$this->actingAs($user)
|
|
->get("/admin/tenants/{$tenant->external_id}/required-permissions")
|
|
->assertSuccessful();
|
|
});
|
|
|
|
Queue::assertNothingPushed();
|
|
});
|