Make WordPress Core

Changeset 57497


Ignore:
Timestamp:
01/31/2024 10:59:33 AM (3 years ago)
Author:
youknowriad
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme/wpThemeJson.php

    r57496 r57497  
    531531                                                'fontFamilies' => array(
    532532                                                        array(
    533                                                                 'slug'       => 'small',
    534                                                                 'fontFamily' => '14px',
    535                                                         ),
    536                                                         array(
    537                                                                 'slug'       => 'big',
    538                                                                 'fontFamily' => '41px',
     533                                                                'name'       => 'Arial',
     534                                                                'slug'       => 'arial',
     535                                                                'fontFamily' => 'Arial, serif',
     536                                                        ),
     537                                                ),
     538                                                'fontSizes'    => array(
     539                                                        array(
     540                                                                'slug' => 'small',
     541                                                                'size' => '14px',
     542                                                        ),
     543                                                        array(
     544                                                                'slug' => 'big',
     545                                                                'size' => '41px',
    539546                                                        ),
    540547                                                ),
Note: See TracChangeset for help on using the changeset viewer.