<?php

namespace Tests\Unit\Services\Reports;

use App\Services\Reports\SlipPrinterFormatterService;
use Tests\TestCase;

class SlipPrinterFormatterServiceTest extends TestCase
{
    public function test_to_db_date_parses_us_format(): void
    {
        $service = new SlipPrinterFormatterService();
        $this->assertSame('2025-09-01', $service->toDbDate('09/01/2025'));
    }

    public function test_to_db_time_parses_string(): void
    {
        $service = new SlipPrinterFormatterService();
        $this->assertSame('08:15:00', $service->toDbTime('8:15 AM'));
    }
}
