fix tests

This commit is contained in:
root
2026-06-11 11:46:12 -04:00
parent c91fa2ce4d
commit 5ead80fdc7
1489 changed files with 11349 additions and 10305 deletions
+3 -4
View File
@@ -9,9 +9,7 @@ use App\Services\Invoices\InvoiceGenerationService;
class EventChargeService
{
public function __construct(private InvoiceGenerationService $invoiceGeneration)
{
}
public function __construct(private InvoiceGenerationService $invoiceGeneration) {}
public function seedChargesForEvent(Event $event, string $schoolYear, string $semester, float $amount, int $actorId): array
{
@@ -82,7 +80,7 @@ class EventChargeService
int $actorId
): array {
$event = Event::getEvent($eventId, $schoolYear);
if (!$event) {
if (! $event) {
return ['ok' => false, 'message' => 'Event not found.'];
}
@@ -109,6 +107,7 @@ class EventChargeService
$existing->delete();
$deleted++;
}
continue;
}