TenantAtlas/apps/platform/tests/Feature/System/Spec113/TenantPlaneCannotAccessSystemTest.php
2026-04-08 09:33:16 +02:00

17 lines
353 B
PHP

<?php
declare(strict_types=1);
use App\Models\User;
use Illuminate\Foundation\Testing\RefreshDatabase;
uses(RefreshDatabase::class);
it('returns 404 when a tenant session accesses system runbooks', function () {
$user = User::factory()->create();
$this->actingAs($user)
->get('/system/ops/runbooks')
->assertNotFound();
});