<?php

namespace Tests\Unit\Services\Administrator;

use App\Services\Administrator\AdministratorEnrollmentEventService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Event;
use Tests\TestCase;

class AdministratorEnrollmentEventServiceTest extends TestCase
{
    use RefreshDatabase;

    public function test_dispatch_grouped_events_with_empty_groups(): void
    {
        Event::fake();

        $service = new AdministratorEnrollmentEventService();
        $service->dispatchGroupedEvents([], [], [], '2025-2026');

        Event::assertNotDispatched('studentEnrolled');
    }
}
