refactor(website): add 'dates_text' field to event configuration and update related tests
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
],
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user