Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#52830 new defect (bug)

Tests: Uploads remain after running test suite.

Reported by: peterwilsoncc's profile peterwilsoncc Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords:
Focuses: Cc:


Running the test suite (phpunit on the command line) in full leaves several files remaining in the uploads directory once the tests complete:


Running only the media tests( phpunit --filter Tests_Media on the cli) leaves a different set of files remaining after they have completed:


I did try to tidy them up by deleting attachments manually in _delete_all_data() (similar to how posts are deleted between classes in _delete_all_posts()) but without success.

Related #38264

Change History (2)

#2 @ayeshrajans
3 years ago

Totally unrelated, but I'm sure even the magicians are in awe when @SergeyBiryukov links to an absolutely related ticket from SEVEN YEARS ago, and here I am, failing to name the color of the food I had for lunch.

Thank you, the WordPress community is lucky to have you - you are awesome 🚀.

Note: See TracTickets for help on using tickets.