<?php

namespace Tests\Unit;

use PHPUnit\Framework\TestCase;

class MeilisearchConfigTest extends TestCase
{
    public function test_features_is_searchable(): void
    {
        $config = require __DIR__ . '/../../config/meilisearch.php';

        $this->assertContains(
            'features',
            $config['vehicle_index']['searchable_attributes'],
            'features must be a searchable attribute so vehicles can be searched by feature name'
        );
    }
}
