<?php

namespace Tests\Unit;

use App\Campaigns\PerformanceWindows;
use Tests\TestCase;

class PerformanceWindowsTest extends TestCase
{
    public function test_it_exposes_fixed_ingest_and_analysis_windows(): void
    {
        $this->assertSame(3, PerformanceWindows::HOURLY_REFRESH_HOURS);
        $this->assertSame(7, PerformanceWindows::HOURLY_BACKFILL_CHUNK_DAYS);
        $this->assertSame([3, 5, 7], PerformanceWindows::analysisHourLengths());
        $this->assertSame([3, 7], PerformanceWindows::analysisDayLengths());
        $this->assertSame(7, PerformanceWindows::maxAnalysisHours());
        $this->assertSame(
            ['3h', '5h', '7h', '3d', '7d'],
            PerformanceWindows::orderedWindowKeys(),
        );
    }
}
