Files
alrahma_sunday_school_api/tests/Unit/Services/Refunds/RefundNotificationServiceTest.php
T
2026-03-10 23:12:49 -04:00

24 lines
558 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();
}
}