Tests: Minimize file copying in `WP_REST_Attachments_Controller` tests.
The tests use two images that were deleted on teardown and recreated on setup for every single test. This appears to be unnecessary, as the files can instead only be recreated if they are missing, and deleted after the test run is complete. This commit reduces ~200 redundant file copying operations to ~5 when running this test class. Follow-up to [38832], [48291], [54424]. See #55652. Built from https://develop.svn.wordpress.org/trunk@54428 git-svn-id: http://core.svn.wordpress.org/trunk@53987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
05c3709db3
commit
7b8972ba63
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-beta3-54427';
|
||||
$wp_version = '6.1-beta3-54428';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue