feat: Refactor event form functionality by removing social media data from AdminAppBootstrapResource and AdminAppBootstrapService; add EventFormController, EventFormResource, and EventFormService; implement routes and tests for event form

This commit is contained in:
2026-08-03 14:02:08 -03:00
parent 12697c2268
commit 3b36abd46d
12 changed files with 162 additions and 36 deletions

View File

@@ -4,7 +4,6 @@ namespace Tests\Feature\Tenant;
use App\Domains\Attachable\Models\Attachment;
use App\Domains\Tenant\Models\WebsiteType;
use Database\Seeders\SocialMediaSeeder;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
@@ -14,7 +13,6 @@ class BootstrapAdminAppControllerTest extends TestCase
public function test_it_publicly_bootstraps_the_admin_app_by_domain(): void
{
$this->seed(SocialMediaSeeder::class);
$footerLogo = Attachment::factory()->create();
WebsiteType::query()->create([
@@ -43,10 +41,7 @@ class BootstrapAdminAppControllerTest extends TestCase
->assertJsonPath('data.login_header_footer_color', '#313131')
->assertJsonPath('data.site_logo', null)
->assertJsonPath('data.footer_logo', $footerLogo->getTemporaryUrl(1440))
->assertJsonPath('data.forms.0.code', 'event')
->assertJsonCount(4, 'data.forms.0.social_media')
->assertJsonPath('data.forms.0.social_media.0.code', 'facebook')
->assertJsonPath('data.forms.0.social_media.3.code', 'linkedin')
->assertJsonMissingPath('data.forms')
->assertJsonMissingPath('data.codigo')
->assertJsonMissingPath('data.nombre')
->assertJsonMissingPath('data.dominio');