Display CMS: Footer-Verlauf, Format-Hinweise und Switch-Fixes.
Blendet den B2IN-Text-Verlauf ohne Footer aus, zeigt 9:16-Format-Badges in der Mediathek, normalisiert Modul-Booleans und korrigiert Flux-Switches im Dark Mode. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
6c2da9bdac
commit
7491d20d39
14 changed files with 366 additions and 10 deletions
28
tests/Unit/DisplayModuleSettingsTest.php
Normal file
28
tests/Unit/DisplayModuleSettingsTest.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Enums\DisplayVersionType;
|
||||
use App\Support\DisplayModuleSettings;
|
||||
|
||||
test('merge normalizes b2in boolean settings from legacy scalar values', function () {
|
||||
$merged = DisplayModuleSettings::merge(DisplayVersionType::B2in, [
|
||||
'show_logo' => 1,
|
||||
'show_claim' => 0,
|
||||
'show_footer' => 'true',
|
||||
'display_active' => 'false',
|
||||
]);
|
||||
|
||||
expect($merged['show_logo'])->toBeTrue()
|
||||
->and($merged['show_claim'])->toBeFalse()
|
||||
->and($merged['show_footer'])->toBeTrue()
|
||||
->and($merged['display_active'])->toBeFalse();
|
||||
});
|
||||
|
||||
test('merge normalizes offers loop boolean', function () {
|
||||
$merged = DisplayModuleSettings::merge(DisplayVersionType::Offers, [
|
||||
'loop' => 0,
|
||||
]);
|
||||
|
||||
expect($merged['loop'])->toBeFalse();
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue