[wp-trac] [WordPress Trac] #61371: Improve `class WP_Theme_JSON` tests

WordPress Trac noreply at wordpress.org
Tue Jun 11 00:29:37 UTC 2024


#61371: Improve `class WP_Theme_JSON` tests
--------------------------------------+----------------------------
 Reporter:  isabel_brison             |       Owner:  isabel_brison
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  6.6
Component:  Editor                    |     Version:  trunk
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------------
Changes (by isabel_brison):

 * owner:  (none) => isabel_brison
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58378" 58378]:
 {{{
 #!CommitTicketReference repository="" revision="58378"
 Editor: Improve maintainability of `class WP_Theme_JSON` tests.

 Updates tests calling `get_stylesheet` to not output layout styles if
 they’re not relevant to the test or to call `get_styles_for_block` instead
 where more appropriate.

 Props isabel_brison, andrewserong, ramonopoly.
 Fixes #61371.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61371#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list