[wp-trac] [WordPress Trac] #37630: WP_UnitTest_Factory_For_Attachment method for 'create' is not implemented

WordPress Trac noreply at wordpress.org
Sun Aug 21 06:04:30 UTC 2016


#37630: WP_UnitTest_Factory_For_Attachment method for 'create' is not implemented
------------------------------------+-------------------
 Reporter:  bcole808                |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  4.7
Component:  Build/Test Tools        |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  docs
------------------------------------+-------------------

Comment (by bcole808):

 The params for filename and post parent ID are both optional for
 `wp_insert_attachment`, shouldn't we keep them optional for the factory as
 well instead of returning a WP Error in case they are missing?

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


More information about the wp-trac mailing list