feat(entry): implement EntryController, EntryService, and EntryResource for managing entries
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user