<?php

it('keeps legacy route permission redis cache script green', function (): void {
    if (!integration_enabled()) {
        test()->markTestSkipped('Set RUN_INTEGRATION_TESTS=1 to run Redis integration tests.');
    }

    $result = run_legacy_script('tests/permissions/PermissionRedisCacheTest.php');
    expect($result['exitCode'])->toBe(0, $result['output']);
});

