[wp-trac] [WordPress Trac] #57841: Test tool and unit test improvements for 6.3

WordPress Trac noreply at wordpress.org
Mon Mar 20 18:20:20 UTC 2023


#57841: Test tool and unit test improvements for 6.3
--------------------------------------+---------------------
 Reporter:  hellofromTonya            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  6.3
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by hellofromTonya):

 In [changeset:"55567" 55567]:
 {{{
 #!CommitTicketReference repository="" revision="55567"
 Tests: Add test class for `wp_enqueue_stored_styles()`.

 [54214] added the `wp_enqueue_stored_styles()` tests and
 `clean_up_global_scope()` reset global method to
 `Tests_Theme_wpGetGlobalStylesheet`.

 This changeset relocates those tests a new test class specifically for
 `wp_enqueue_stored_styles()` and removes
 `Tests_Theme_wpGetGlobalStylesheet::clean_up_global_scope()` method.

 Why not relocate the `clean_up_global_scope()` method to the new test
 class?
 The test class extends from `WP_Theme_UnitTestCase` which includes this
 method.

 Follow-up to [54214], [54703].

 Props costdev.
 See #57841.
 }}}

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


More information about the wp-trac mailing list