<?php

namespace Tests\Feature;

use App\Services\UiTextCatalogService;
use Tests\TestCase;

class UiTextCatalogTest extends TestCase
{
    public function test_catalog_contains_named_and_discovered_blade_ui_text(): void
    {
        $catalog = app(UiTextCatalogService::class)->catalog();

        $this->assertSame('Dashboard', $catalog->get('ui.dashboard'));
        $this->assertTrue($catalog->contains('Report recipients'));
        $this->assertTrue($catalog->contains('Manager name'));
        $this->assertTrue($catalog->keys()->contains(fn (string $key): bool => str_starts_with($key, 'ui.auto.')));
    }
}
