feat(event): implement automatic tenant date text synchronization on save and delete; update related tests

This commit is contained in:
2026-08-11 09:49:59 -03:00
parent 19b506a465
commit 8d8e49fcfb
5 changed files with 55 additions and 5 deletions

View File

@@ -42,6 +42,8 @@ class FiestaFutbolInfantilProductSeederTest extends TestCase
$this->seed([AttributeSeeder::class, FiestaFutbolInfantilProductSeeder::class]);
$this->seed([AttributeSeeder::class, FiestaFutbolInfantilProductSeeder::class]);
$this->assertSame('9, 10, 11 y 12 de Octubre 2026', $tenant->fresh()->event_date_text);
$this->assertSame(
['color', 'event_date', 'horario', 'servicio', 'talle', 'tipo_alojamiento'],
Attribute::query()->where('tenant_codigo', $tenant->codigo)->orderBy('codigo')->pluck('codigo')->all(),