Commit 2cfdcc6
committed
REST API: Fix finalize endpoint tests in Attachments controller.
Enable client-side media processing in the three `test_finalize_item*`
tests so the `/finalize` route is registered before dispatching requests.
Without this, the route does not exist and all assertions fail with
`rest_no_route`.
Extracts the repeated filter-and-reinitialize pattern into a shared
`enable_client_side_media_processing()` helper, used by both the
sideload and finalize tests.
Follow-up to [61982].
Built from https://develop.svn.wordpress.org/trunk@61984
git-svn-id: http://core.svn.wordpress.org/trunk@61266 1a063a9b-81f0-0310-95a4-ce76da25c4cd1 parent 12608ab commit 2cfdcc6
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments