Make WordPress Core


Ignore:
Timestamp:
02/20/2024 09:53:11 AM (3 years ago)
Author:
youknowriad
Message:

Tests: Synchronize Theme.JSON unit test between Core and Gutenberg.

Merges the changes from Core and Gutenberg for the following tests:

  • WP_REST_Global_Styles_Controller_Test
  • Tests_Theme_wpThemeJsonResolver
  • Tests_Theme_wpThemeJsonSchema
  • Tests_Theme_wpThemeJson

This will help ensure the stability of the theme.json style generation.

Props ajlende, scruffian, aaronrobertshaw, get_dave, youknowriad.
Fixes #60387.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/data/themedir1/block-theme/theme.json

    r57336 r57662  
    11{
    22        "$schema": "https://schemas.wp.org/trunk/theme.json",
    3         "version": 1,
     3        "version": 2,
    44        "title": "Block theme",
    55        "settings": {
    … …  
    4343                        ],
    4444                        "customFontSize": false,
    45                         "customLineHeight": true
     45                        "lineHeight": true
    4646                },
    4747                "spacing": {
    48                         "units": ["rem"],
    49                         "customPadding": true,
     48                        "units": [ "rem" ],
     49                        "padding": true,
    5050                        "blockGap": true
    5151                },
    … …  
    6464                }
    6565        },
    66         "styles" : {
    67                 "blocks" :{
     66        "styles": {
     67                "blocks": {
    6868                        "core/post-featured-image": {
    6969                                "shadow": "10px 10px 5px 0px rgba(0,0,0,0.66)",
    … …  
    123123                        "name": "custom-single-post-template",
    124124                        "title": "Custom Single Post template",
    125                         "postTypes": ["post"]
     125                        "postTypes": [ "post" ]
    126126                }
    127127        ],
Note: See TracChangeset for help on using the changeset viewer.