Make WordPress Core


Ignore:
Timestamp:
07/07/2021 02:12:46 PM (5 years ago)
Author:
desrosj
Message:

Tests: Expand tests for get_block_editor_settings().

This adds unit tests to ensure get_block_editor_settings() properly maps some previously experimental features to their correct locations in the array of contextualized block editor settings returned by the function.

Follow up to [51149], [51213].

Props felipeelia.
Fixes #53458.

File:
1 edited

Legend:

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

    r50960 r51369  
    1515                }
    1616            ],
    17             "custom": false
     17            "gradients": [
     18                {
     19                    "name": "Custom gradient",
     20                    "gradient": "linear-gradient(135deg,rgba(0,0,0) 0%,rgb(0,0,0) 100%)",
     21                    "slug": "custom-gradient"
     22                }
     23            ],
     24            "custom": false,
     25            "customGradient": false
     26        },
     27        "typography": {
     28            "fontSizes": [
     29                {
     30                    "name": "Custom",
     31                    "slug": "custom",
     32                    "size": "100px"
     33                }
     34            ],
     35            "customFontSize": false,
     36            "customLineHeight": true
     37        },
     38        "spacing": {
     39            "units": [
     40                "rem"
     41            ],
     42            "customPadding": true
    1843        },
    1944        "blocks": {
Note: See TracChangeset for help on using the changeset viewer.