refactor: ein Helfer für Gruppen-Kurznamen (NodeSummary::groupShortName), ESCAPED_LETTER_REGEX am UsageQuery-Interface, Docblock DiviComposition::presets; Tests für Muster, Kurzname und Gruppen-Überdeckung

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-18 17:40:21 +02:00
co-authored by Claude Sonnet 5.5
parent 6d7c59e3fa
commit e7793fd595
13 changed files with 70 additions and 16 deletions
@@ -64,4 +64,11 @@ final class NodeSummaryTest extends TestCase
self::assertSame([], NodeSummary::groupPresets(Block::create('divi/text', ['groupPreset' => 'x'])));
self::assertSame([], NodeSummary::groupPresets(Block::create('divi/text', ['groupPreset' => []])));
}
public function testGroupShortNameDropsTheDiviPrefixOnly(): void
{
self::assertSame('font-body', NodeSummary::groupShortName('divi/font-body'));
self::assertSame('custom/x', NodeSummary::groupShortName('custom/x'));
self::assertSame('spacing', NodeSummary::groupShortName('spacing'));
}
}