<?php

namespace Tests\Unit\Services\Administrator;

use App\Services\Administrator\AdministratorUserSearchService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

class AdministratorUserSearchServiceTest extends TestCase
{
    use RefreshDatabase;

    public function test_empty_query_returns_no_results(): void
    {
        $service = new AdministratorUserSearchService();
        $result = $service->search('');

        $this->assertSame('', $result['query']);
        $this->assertSame([], $result['results']);
        $this->assertSame(0, $result['total_found']);
    }
}
