TenantAtlas/apps/platform/tests/Feature/Rbac/DriftLandingUiEnforcementTest.php
2026-04-08 09:33:16 +02:00

16 lines
464 B
PHP

<?php
use App\Filament\Pages\BaselineCompareLanding;
it('uses baseline compare landing as the drift entry point post-cutover', function (): void {
[$user, $tenant] = createUserWithTenant(role: 'owner');
$this->actingAs($user)
->get(BaselineCompareLanding::getUrl(tenant: $tenant, panel: 'tenant'))
->assertOk();
$this->actingAs($user)
->get('/admin/t/'.$tenant->external_id.'/drift-landing')
->assertNotFound();
});