<?php

namespace Tests\Unit;

use App\Services\NavigationMenuService;
use PHPUnit\Framework\TestCase;

class NavigationMenuServiceTest extends TestCase
{
    public function test_recommended_header_menu_definitions(): void
    {
        $items = NavigationMenuService::recommendedHeaderMenuDefinitions();

        $this->assertCount(6, $items);
        $this->assertSame('home', $items[0]['route_name']);
        $this->assertSame('ticket_open', $items[1]['route_name']);
        $this->assertSame('services', $items[2]['route_name']);
        $this->assertSame('Knowledge Base', $items[3]['label']);
        $this->assertContains('ticket_open', (new NavigationMenuService())->allowedRouteNames());
    }
}
