feat: PresetComposer – Preset aus Kurz-/Vollform, Modul und Gruppen-Presets

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-16 17:42:18 +02:00
co-authored by Claude Sonnet 5.5
parent bb4d9b3baf
commit cc20100cbc
4 changed files with 558 additions and 0 deletions
@@ -27,6 +27,7 @@ final class DesignSystemWriterTest extends TestCase
'GlobalPreset::get_data()', 'GlobalPreset::prepare_data()', 'GlobalPreset::validate_preset_count()',
'GlobalPreset::get_deleted_preset_ids()', 'GlobalPreset::remove_preset_from_legacy_option()',
'GlobalPreset::save_data()', 'Conversion::get_preset_attrs_mapping()', 'Conversion::get_preset_attrs()',
'GlobalPreset::get_group_preset_default_attr()', 'ModuleRegistration::get_module_settings()',
'UserRole::can_current_user_use_visual_builder()',
],
array_map(static fn (Call $call): string => $call->label(), $manifest->calls)
@@ -48,4 +49,9 @@ final class DesignSystemWriterTest extends TestCase
{
self::assertFalse((new DesignSystemWriter())->canUseVisualBuilder());
}
public function testWithoutDiviAModuleHasNoGroups(): void
{
self::assertSame([], (new DesignSystemWriter())->groupsOf('divi/button'));
}
}