Commit f917e8b
committed
Tests: Clean up attachments added during Tests_Ajax_wpAjaxSendAttachmentToEditor.
Tests in this class used to add attachments that weren't removed in the tear down class method. As such, following tests in other suites that ran after the ajax group were impacted. Specifically, when running `grunt precommit`, the test `WP_Test_REST_Attachments_Controller::test_sideload_scaled_unique_filename` in the multisite suite failed because it expected a filename `canola-scaled.jpg` and found `canola-scaled-1.jpg` instead.
Props mukesh27, mosescursor, mohamedahamed, afercia.
Fixes #65595.
git-svn-id: https://develop.svn.wordpress.org/trunk@62709 602fd350-edb4-49c9-b593-d223f7449a821 parent d6f6780 commit f917e8b
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
| |||
0 commit comments