Editor: Fix Theme.json font settings in unit test.

These changes fix incorrect font settings when testing the generation of a theme.json stylesheet.

Props aaronrobertshaw, mukesh27.
Fixes #60341.

git-svn-id: https://develop.svn.wordpress.org/trunk@57497 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Riad Benguella 2024-01-31 10:59:33 +00:00
parent b999860bb6
commit 621ac049c6

View File

@ -530,12 +530,19 @@ class Tests_Theme_wpThemeJson extends WP_UnitTestCase {
'typography' => array(
'fontFamilies' => array(
array(
'slug' => 'small',
'fontFamily' => '14px',
'name' => 'Arial',
'slug' => 'arial',
'fontFamily' => 'Arial, serif',
),
),
'fontSizes' => array(
array(
'slug' => 'small',
'size' => '14px',
),
array(
'slug' => 'big',
'fontFamily' => '41px',
'slug' => 'big',
'size' => '41px',
),
),
),