[wp-trac] [WordPress Trac] #57958: PHPUnit tests: Add/improve @covers annotations for WP 6.3

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


#57958: PHPUnit tests: Add/improve @covers annotations for WP 6.3
------------------------------+-----------------------------
 Reporter:  pbearne           |       Owner:  hellofromTonya
     Type:  task (blessed)    |      Status:  assigned
 Priority:  normal            |   Milestone:  6.3
Component:  Build/Test Tools  |     Version:  4.8
 Severity:  normal            |  Resolution:
 Keywords:                    |     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/57958#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list