S2a: purge legacy Form Builder PHP code and routes

This commit is contained in:
2026-04-17 18:43:00 +02:00
parent cfc7610497
commit a3ca596362
55 changed files with 128 additions and 6057 deletions

View File

@@ -137,41 +137,6 @@ class EventImageUploadTest extends TestCase
$response->assertNotFound();
}
public function test_registration_data_includes_branding_fields(): void
{
$event = Event::factory()->create([
'organisation_id' => $this->organisation->id,
'status' => 'registration_open',
'slug' => 'branding-test-event',
'registration_welcome_text' => 'Welcome to our event!',
'registration_banner_url' => 'https://example.com/banner.jpg',
'registration_logo_url' => 'https://example.com/logo.png',
]);
$response = $this->getJson('/api/v1/public/events/branding-test-event/registration-data');
$response->assertOk()
->assertJsonPath('data.event.registration_welcome_text', 'Welcome to our event!')
->assertJsonPath('data.event.registration_banner_url', 'https://example.com/banner.jpg')
->assertJsonPath('data.event.registration_logo_url', 'https://example.com/logo.png');
}
public function test_registration_data_includes_null_branding_fields(): void
{
Event::factory()->create([
'organisation_id' => $this->organisation->id,
'status' => 'registration_open',
'slug' => 'no-branding-event',
]);
$response = $this->getJson('/api/v1/public/events/no-branding-event/registration-data');
$response->assertOk()
->assertJsonPath('data.event.registration_welcome_text', null)
->assertJsonPath('data.event.registration_banner_url', null)
->assertJsonPath('data.event.registration_logo_url', null);
}
public function test_event_update_saves_welcome_text(): void
{
Sanctum::actingAs($this->orgAdmin);