From 621ac049c6ae23451ac8fcaf9a4f1d66a60f2df1 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Wed, 31 Jan 2024 10:59:33 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/theme/wpThemeJson.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/tests/theme/wpThemeJson.php b/tests/phpunit/tests/theme/wpThemeJson.php index 82b400aab4..dde216678f 100644 --- a/tests/phpunit/tests/theme/wpThemeJson.php +++ b/tests/phpunit/tests/theme/wpThemeJson.php @@ -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', ), ), ),