[wp-trac] [WordPress Trac] #63967: REST API test methods using supported image format to test unsupported logic checks
WordPress Trac
noreply at wordpress.org
Fri Sep 12 16:12:14 UTC 2025
#63967: REST API test methods using supported image format to test unsupported
logic checks
--------------------------+----------------------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: REST API | Version:
Severity: normal | Keywords: good-first-bug needs-patch
Focuses: |
--------------------------+----------------------------------------
The
`WP_Test_REST_Attachments_Controller::test_upload_unsupported_image_type`
and
`WP_Test_REST_Attachments_Controller::test_upload_unsupported_image_type_with_filter`
test methods try to validate that the attachment controller correctly
handles scenarios where an unsupported image type is provided. They are
currently using the AVIF.
It's becoming more and more common for environments to include AVIF
support. As a result, these tests are often skipped. A more obscure format
should be used to ensure the test runs more consistently.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63967>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list