[wp-trac] [WordPress Trac] #52451: Make the media sideload functions testable and add tests
WordPress Trac
noreply at wordpress.org
Thu Feb 4 17:18:56 UTC 2021
#52451: Make the media sideload functions testable and add tests
----------------------------+-----------------------------
Reporter: hellofromTonya | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Goals:
1. Make the media "sideload" functions testable
2. Provide code coverage for these functions
To accomplish this:
- These functions will first need to be refactored.
- Then unit tests can be built to provide code coverage.
Sideload functions include:
- `media_handle_sideload()`
- `media_sideload_image()`
A guide for the refactoring work:
- All changes will focus on testability
- No changes should impact or alter the current behavior, extensibility,
or backwards compatibility
- Care will be given to maintainability and readability (i.e. code
quality)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52451>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list