Files
alrahma_sunday_school_api/tests/Unit/Services/Refunds/RefundNotificationServiceTest.php
T
2026-06-09 01:25:14 -04:00

24 lines
556 B
PHP

<?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();
}
}