[wp-trac] [WordPress Trac] #49631: Test coverage for
WordPress Trac
noreply at wordpress.org
Thu Mar 12 14:38:46 UTC 2020
#49631: Test coverage for
--------------------------+-------------------------
Reporter: antpb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Media | Version: 5.4
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-------------------------
Since #48164 when an image is sideloaded we store the original attachment
URL in `_source_url`. There should be test coverage across this feature
that validates that the meta is being properly stored.
@pbiron mentioned in the Media meeting where this was discussed that there
are currently no existing tests around the `media_sideload_image()`
function. This would be a great start to getting that covered.
@joemcgill also mentioned that "You may want to consider writing the test
in a way that sideloads an image that is already available on the test
site."
Link to media meeting where this took place:
https://wordpress.slack.com/archives/C02SX62S6/p1584022312111000
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49631>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list