27 lines
767 B
PHP
27 lines
767 B
PHP
<?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']);
|
|
}
|
|
}
|