[wp-trac] [WordPress Trac] #47701: unit test for wp_get_mime_types()

WordPress Trac noreply at wordpress.org
Mon Jul 15 00:13:23 UTC 2019


#47701: unit test for wp_get_mime_types()
-------------------------------------------------+-------------------------
 Reporter:  pbearne                              |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Media                                |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 Thanks for the patch! However, I'm not sure if there's any benefit in
 duplicate the entire list of of mime types in the test and maintaining it
 in two places...

 Perhaps something like
 [source:tags/5.2.2/tests/phpunit/tests/functions.php#L981
 test_wp_get_ext_types()] that we have for `wp_get_ext_types()` would be
 enough here?

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


More information about the wp-trac mailing list