feat(brand): add header background color to brand resource
This commit is contained in:
@@ -17,6 +17,7 @@ class BrandResource extends JsonResource
|
||||
return [
|
||||
'nombre' => $this->nombre,
|
||||
'primary_color' => $this->primary_color,
|
||||
'header_bg_color' => $this->header_bg_color,
|
||||
'footer_bg_color' => $this->footer_bg_color,
|
||||
'header_logo' => $this->headerLogo?->getTemporaryUrl(1440),
|
||||
'footer_logo' => $this->footerLogo?->getTemporaryUrl(1440),
|
||||
|
||||
@@ -53,6 +53,7 @@ class AdminAppBrandControllerTest extends TestCase
|
||||
$tenant = $this->tenant('acme', $websiteType, [
|
||||
'nombre' => 'Acme',
|
||||
'primary_color' => '#112233',
|
||||
'header_bg_color' => '#223344',
|
||||
'footer_bg_color' => '#445566',
|
||||
'header_logo_id' => $header->id,
|
||||
'footer_logo_id' => $footer->id,
|
||||
@@ -73,6 +74,7 @@ class AdminAppBrandControllerTest extends TestCase
|
||||
->assertOk()
|
||||
->assertJsonPath('data.nombre', 'Acme')
|
||||
->assertJsonPath('data.primary_color', '#112233')
|
||||
->assertJsonPath('data.header_bg_color', '#223344')
|
||||
->assertJsonPath('data.footer_bg_color', '#445566')
|
||||
->assertJsonCount(2, 'data.banner_images');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user