Opened 4 years ago
Last modified 4 years ago
#52830 new defect (bug)
Tests: Uploads remain after running test suite.
Reported by: | peterwilsoncc | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | |
Focuses: | Cc: |
Description
Running the test suite (phpunit
on the command line) in full leaves several files remaining in the uploads directory once the tests complete:
/uploads/2021/03/waffles.jpg /uploads/2021/03/waffles-300x200.jpg /uploads/2021/03/waffles-150x150.jpg
Running only the media tests( phpunit --filter Tests_Media
on the cli) leaves a different set of files remaining after they have completed:
/uploads/2021/03/test-image-large-scaled-150x150.jpg /uploads/2021/03/test-image-large-scaled-300x225.jpg /uploads/2021/03/test-image-large-scaled-768x576.jpg /uploads/2021/03/test-image-large-scaled-1024x768.jpg
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
@
4 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 🚀.
Related: #28847