forked from WordPress/wordpress-develop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Use data provider in Tests_Interactivity_API_wpInteractivityAP…
…IFunctions. 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. git-svn-id: https://develop.svn.wordpress.org/trunk@58739 602fd350-edb4-49c9-b593-d223f7449a82
- Loading branch information
1 parent
a6d5694
commit 81702ce
Showing
1 changed file
with
103 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters