[wp-trac] [WordPress Trac] #35987: Unit test: wp_ext2type

WordPress Trac noreply at wordpress.org
Wed Apr 13 03:11:27 UTC 2016


#35987: Unit test: wp_ext2type
--------------------------------------+---------------------------
 Reporter:  borgesbruno               |       Owner:  boonebgorges
     Type:  enhancement               |      Status:  closed
 Priority:  normal                    |   Milestone:  4.6
Component:  Media                     |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-unit-tests has-patch  |     Focuses:
--------------------------------------+---------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37189"]:
 {{{
 #!CommitTicketReference repository="" revision="37189"
 Improve testability and coverage of `wp_ext2type()`.

 * Following pattern of `wp_get_mime_types()`, introduce
 `wp_get_ext_types()` function. New function returns a filtered list of
 file types with their extensions.
 * Use this function in new tests for `wp_ext2type()`.

 Props borgesbruno.
 Fixes #35987.
 }}}

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


More information about the wp-trac mailing list