feat(entry): implement EntryController, EntryService, and EntryResource for managing entries

This commit is contained in:
2026-08-07 12:34:38 -03:00
parent ed4502425a
commit 6a6d3690cc
9 changed files with 531 additions and 27 deletions

View File

@@ -54,7 +54,7 @@ class FiestaFutbolInfantilProductSeederTest extends TestCase
'camiseta' => 12,
'alojamiento' => 2,
'comida' => 24,
'abono' => 15,
'abono' => 1,
];
foreach ($expectedVariantCounts as $slug => $count) {
$item = CatalogItem::query()->where('tenant_code', $tenant->codigo)->where('slug', $slug)->sole();
@@ -70,7 +70,7 @@ class FiestaFutbolInfantilProductSeederTest extends TestCase
$dateAttribute = $abono->itemAttributes->firstWhere('attribute.codigo', 'event_date');
$this->assertTrue($dateAttribute->allow_multi_select);
$this->assertEqualsCanonicalizing(
[1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 4],
[4],
$abono->variants->map(fn ($variant): int => $variant->eventDates->count())->all(),
);