[wp-trac] [WordPress Trac] #49631: Test coverage for media_sideload_image() _source_url meta

WordPress Trac noreply at wordpress.org
Wed Mar 18 01:18:20 UTC 2020


#49631: Test coverage for media_sideload_image() _source_url meta
--------------------------+-----------------------
 Reporter:  antpb         |       Owner:  killua99
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  5.5
Component:  Media         |     Version:  5.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------
Changes (by killua99):

 * keywords:  needs-patch => has-patch


Comment:

 I wrote the first pass.

 The source is not coming from the site setup since is a mockup with
 http://example.org/ is hard to sideload even creating the attachment
 upload, the request to download fails and is impossible to test it in that
 way. I found something that could be useful for now. Perhaps add some TODO
 notes on the test to improve the real sideload from a mockup site that
 could be accessible on travis.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49631#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list