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. Built from https://develop.svn.wordpress.org/trunk@55565 git-svn-id: http://core.svn.wordpress.org/trunk@55077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6740fd5821
commit
5b0a2e6d06
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.3-alpha-55564';
|
||||
$wp_version = '6.3-alpha-55565';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue