Tests: Refactor `Tests_Image_Functions::test_wp_save_image_file()` to use a data provider.
Using a data provider has a number of advantages: 1. If the first test case fails, it won't prevent the other test cases from being tested. 2. The output from PHPUnit will be more descriptive in case of failure when using a data provider. 3. Using named test cases in the data provider will also make the `--testdox` output much more descriptive and informative. The actual cases being tested, or the test itself have not been changed. Includes: * Adding a `@covers` annotation. * Adding a skip annotation for unsupported mime types. * Adding a failure message to each assertion. Follow-up to [1061/tests], [53495], [53497], [53521], [53523], [53524], [53525], [53526]. Props jrf. See #55652. Built from https://develop.svn.wordpress.org/trunk@53529 git-svn-id: http://core.svn.wordpress.org/trunk@53118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3abb5d4a83
commit
de017e6a7e
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-53528';
|
||||
$wp_version = '6.1-alpha-53529';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue