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:
co-authored by
Claude Sonnet 5.5
parent
2b45f1bdd3
commit
0a24753b4d
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user