refactor(website): add 'dates_text' field to event configuration and update related tests

This commit is contained in:
2026-07-29 16:23:24 -03:00
parent 8e3ee7eff6
commit 2cc72be850
6 changed files with 9 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ class TenantSeederTest extends TestCase
$this->assertSame([
'title' => 'Fiesta Fútbol Infantil',
'location' => 'Rosario, Santa Fe',
'dates_text' => '9, 10, 11 y 12 de Octubre 2026',
'dates' => [
'2026-12-05',
'2026-12-06',

View File

@@ -85,6 +85,7 @@ class WebsiteTypeSeederTest extends TestCase
'$' => 'required|array',
'title' => 'nullable|string',
'location' => 'nullable|string',
'dates_text' => 'nullable|string|max:255',
'dates' => 'nullable|array',
'dates.*' => 'required|date_format:Y-m-d|distinct',
],
@@ -93,6 +94,7 @@ class WebsiteTypeSeederTest extends TestCase
'$' => 'required|array',
'title' => 'nullable|string',
'location' => 'nullable|string',
'dates_text' => 'nullable|string|max:255',
'dates' => 'nullable|array',
'dates.*' => 'required|date_format:Y-m-d|distinct',
],

View File

@@ -30,6 +30,7 @@ class StoreTenantWithExtrasTest extends TestCase
'eventConfig' => [
'title' => 'Festival',
'location' => 'Buenos Aires',
'dates_text' => '10 y 11 de octubre de 2026',
'dates' => ['2026-10-10', '2026-10-11'],
],
],
@@ -50,6 +51,7 @@ class StoreTenantWithExtrasTest extends TestCase
[
'title' => 'Festival',
'location' => 'Buenos Aires',
'dates_text' => '10 y 11 de octubre de 2026',
'dates' => ['2026-10-10', '2026-10-11'],
],
$tenant->websiteExtras()->sole()->config