<?php

declare(strict_types=1);

use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Artisan;

uses(RefreshDatabase::class);

it('does not register findings lifecycle backfill or deploy-runbook commands', function (): void {
    $commands = array_keys(Artisan::all());

    expect($commands)
        ->not->toContain('tenantpilot:findings:backfill-lifecycle')
        ->not->toContain('tenantpilot:run-deploy-runbooks');

    expect((string) file_get_contents(base_path('routes/console.php')))
        ->not->toContain('tenantpilot:findings:backfill-lifecycle')
        ->not->toContain('tenantpilot:run-deploy-runbooks');
});
