TenantAtlas/apps/platform/tests/Feature/RequiredPermissions/RequiredPermissionsDbOnlyRenderTest.php
Ahmed Darrazi e4db44f606
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 1m27s
feat: complete workspace-first environment routing cutover
2026-05-07 23:46:45 +02:00

23 lines
612 B
PHP

<?php
declare(strict_types=1);
use App\Support\Links\RequiredPermissionsLinks;
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(RequiredPermissionsLinks::requiredPermissions($tenant))
->assertSuccessful();
});
Queue::assertNothingPushed();
});