Update default branding palette for tenants and guests
This commit is contained in:
@@ -38,7 +38,7 @@ class SettingsApiTest extends TenantTestCase
|
||||
|
||||
$response->assertStatus(200)
|
||||
->assertJson(['message' => 'Settings erfolgreich abgerufen.'])
|
||||
->assertJsonPath('data.settings.branding.primary_color', '#3B82F6')
|
||||
->assertJsonPath('data.settings.branding.primary_color', '#FF5A5F')
|
||||
->assertJsonPath('data.settings.features.photo_likes_enabled', true);
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ class SettingsApiTest extends TenantTestCase
|
||||
|
||||
$response->assertStatus(200)
|
||||
->assertJson(['message' => 'Settings auf Standardwerte zurueckgesetzt.'])
|
||||
->assertJsonPath('data.settings.branding.primary_color', '#3B82F6')
|
||||
->assertJsonPath('data.settings.branding.primary_color', '#FF5A5F')
|
||||
->assertJsonPath('data.settings.features.photo_likes_enabled', true);
|
||||
|
||||
$this->assertDatabaseHas('tenants', [
|
||||
@@ -109,8 +109,8 @@ class SettingsApiTest extends TenantTestCase
|
||||
'settings' => json_encode([
|
||||
'branding' => [
|
||||
'logo_url' => null,
|
||||
'primary_color' => '#3B82F6',
|
||||
'secondary_color' => '#1F2937',
|
||||
'primary_color' => '#FF5A5F',
|
||||
'secondary_color' => '#FFF8F5',
|
||||
'font_family' => 'Inter, sans-serif',
|
||||
],
|
||||
'features' => [
|
||||
@@ -185,7 +185,7 @@ class SettingsApiTest extends TenantTestCase
|
||||
$response = $this->authenticatedRequest('GET', '/api/v1/tenant/settings');
|
||||
|
||||
$response->assertStatus(200)
|
||||
->assertJsonPath('data.settings.branding.primary_color', '#3B82F6') // Default for this tenant
|
||||
->assertJsonPath('data.settings.branding.primary_color', '#FF5A5F') // Default for this tenant
|
||||
->assertJsonMissing(['#FF0000']); // Other tenant's color
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user