Fix failed tests in WPTestAttachments
|Reported by:||kurtpayne||Owned by:|
|Milestone:||Fix Existing Tests||Priority:||normal|
Uploaded files are not being removed between tests. When new files are uploaded in subsequent tests, their names are incremented by wp_unique_filename(), and this throws off the assertions.
This fix can be implemented in just WPTestAttachments::tearDown() but we should consider putting it in WPTestCase::tearDown() so it's effective for all tests.