mirror of
git://develop.git.wordpress.org/
synced 2025-02-07 08:04:27 +01:00
The test for `WP_Customizer_Manager::import_theme_starter_content()` creates two attachments that remain in the `uploads` directory after the test run is complete. This commit follows the approach from `WP_REST_Posts_Controller` tests and utilizes an `$attachments_created` property to track any files uploaded in the current test run and clean them up afterwards. This makes sure there are no leftover images after the test class is run. Follow-up to [39276], [39346], [39411], [40142], [53935], [54424]. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54425 602fd350-edb4-49c9-b593-d223f7449a82