add refund and event logic
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Services\Events;
|
||||
|
||||
use App\Services\Events\EventChargeService;
|
||||
use App\Services\Events\EventManagementService;
|
||||
use App\Services\Invoices\InvoiceGenerationService;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Mockery;
|
||||
use Tests\TestCase;
|
||||
|
||||
class EventManagementServiceTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_update_returns_not_found(): void
|
||||
{
|
||||
$chargeService = Mockery::mock(EventChargeService::class);
|
||||
$invoiceService = Mockery::mock(InvoiceGenerationService::class);
|
||||
|
||||
$service = new EventManagementService($chargeService, $invoiceService);
|
||||
$result = $service->update(999, ['event_name' => 'Missing'], null);
|
||||
|
||||
$this->assertFalse($result['ok']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user