add refund and event logic

This commit is contained in:
root
2026-03-10 23:12:49 -04:00
parent ba1206e314
commit f6be51576c
67 changed files with 4808 additions and 1000 deletions
@@ -0,0 +1,23 @@
<?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();
}
}