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

WordPress Trac noreply at wordpress.org
Mon Mar 20 16:16:37 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:"55565" 55565]:
 {{{
 #!CommitTicketReference repository="" revision="55565"
 Tests: Add test class for `wp_script_is()`.

 Changes:
 * Adds a test class for `wp_script_is()`.
 * Moves `WP_Dependencies_jQuery::test_wp_script_is_dep_enqueued()` into
 this test class and splits it into 2 separate tests, happy and unhappy
 paths.
 * Adds `WP_Scripts::query` `@covers`, as `wp_script_is()` is helper
 function for it.
 * Relocates the global resetting from the test method to the
 `clean_up_global_scope()` method.

 Follow-up to [52010], [29252].

 Props hellofromTonya, antonvlasenko.
 See #57841, #57958.
 }}}

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


More information about the wp-trac mailing list