add refund and event logic
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user