<?php

declare(strict_types=1);

use App\Support\Auth\PlatformCapabilities;

it('removes the platform capability and seeder grant for findings lifecycle backfill', function (): void {
    expect(defined(PlatformCapabilities::class.'::RUNBOOKS_FINDINGS_LIFECYCLE_BACKFILL'))->toBeFalse()
        ->and(PlatformCapabilities::all())->not->toContain('platform.runbooks.findings.lifecycle_backfill');

    expect((string) file_get_contents(database_path('seeders/PlatformUserSeeder.php')))
        ->not->toContain('RUNBOOKS_FINDINGS_LIFECYCLE_BACKFILL')
        ->not->toContain('platform.runbooks.findings.lifecycle_backfill');
});
