fix: Schriftname wird vor der Katalogprüfung getrimmt (Theme-Optionen)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jan-Niclas Loosen
2026-10-19 18:27:16 +02:00
co-authored by Claude Sonnet 5.5
parent 2b45f1bdd3
commit 0a24753b4d
2 changed files with 13 additions and 5 deletions
@@ -152,6 +152,14 @@ final class DiviThemeOptionsUpdateAbilityTest extends TestCase
self::assertSame(ThemeOptionBook::fromDivi($this->stored)->rev(), $result['design_rev']);
}
public function testAFontNameIsTrimmedBeforeTheCatalogCheck(): void
{
$result = $this->confirmed($this->ability(self::snapshots()), ['set' => ['heading_font' => ' Roboto']])[1];
self::assertSame('theme_options-1', $result['snapshot_id']);
self::assertSame('Roboto', $this->stored['heading_font']);
}
/** Only fonts reach the builder (W7). */
public function testSizesOnlyWarnAboutTheWholeWebsite(): void
{