[wp-trac] [WordPress Trac] #56611: Expand unit tests for `theme.json`

WordPress Trac noreply at wordpress.org
Tue Sep 20 15:17:53 UTC 2022


#56611: Expand unit tests for `theme.json`
----------------------------+------------------------------------------
 Reporter:  desrosj         |      Owner:  (none)
     Type:  task (blessed)  |     Status:  new
 Priority:  normal          |  Milestone:  6.1
Component:  Editor          |    Version:
 Severity:  normal          |   Keywords:  needs-patch needs-unit-tests
  Focuses:                  |
----------------------------+------------------------------------------
 As support new properties in `theme.json` has been added and expanded, the
 unit tests have not kept up.

 There's a
 [https://core.trac.wordpress.org/browser/trunk/tests/phpunit/data/themedir1
 /block-theme/theme.json block theme used within unit tests] missing some
 of the supported properties listed in the [https://developer.wordpress.org
 /block-editor/reference-guides/theme-json-reference/theme-json-living/
 living reference].

 I noticed this when merging support for `box-shadow` on specific elements
 in [54253]. Ideally new tests should be added each time properties and
 values allowed in `theme.json` change.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56611>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list