<?php

namespace Tests\Unit\Services\Refunds;

use App\Services\Refunds\RefundNotificationService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Log;
use Tests\TestCase;

class RefundNotificationServiceTest extends TestCase
{
    use RefreshDatabase;

    public function test_notify_pending_logs_event(): void
    {
        Log::spy();

        $service = new RefundNotificationService();
        $service->notifyPending(10, 50.25, 'https://example.test/login');

        Log::shouldHaveReceived('info')->once();
    }
}
