mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
Tests: Use data provider in Tests_Interactivity_API_wpInteractivityAPIFunctions.
Refactors the following tests to use a data provider with named test cases: * `test_wp_interactivity_data_wp_context_with_different_arrays()` * `test_wp_interactivity_data_wp_context_with_different_arrays_and_a_namespace()` * `test_wp_interactivity_data_wp_context_with_json_flags()` This is better as: 1. One failing test will not block the other tests from running. 2. Each test is now referenced by name in any error message, making it more straight forward to see which test failed. 3. The test no longer contains multiple assertions. 3. It makes it more straight forward to add additional tests. Follow-up to [58594], [58234], [57762], [57743], [57742], [57563]. Props jrf. See #61530. Built from https://develop.svn.wordpress.org/trunk@58739 git-svn-id: http://core.svn.wordpress.org/trunk@58141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4c2edeb04a
commit
4007d27204
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-alpha-58738';
|
||||
$wp_version = '6.7-alpha-58739';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user