[wp-trac] [WordPress Trac] #53987: add tests for wp_list_filter

WordPress Trac noreply at wordpress.org
Thu Aug 26 14:56:56 UTC 2021


#53987: add tests for wp_list_filter
--------------------------------------+---------------------
 Reporter:  pbearne                   |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  5.9
Component:  Build/Test Tools          |     Version:  trunk
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 Thanks for the PR!

 Just noting there also some existing tests for `wp_list_filter()` in
 `tests/functions/wpListUtil.php`.

 It looks like:
 * `wpListFilter.php` has tests for `wp_filter_object_list()` and
 `wp_list_pluck()`.
 * `wpListUtil.php` has tests for `wp_list_pluck()`, `wp_list_filter()`,
 `wp_list_sort()`, and the `WP_List_Util` class.

 This could probably use some reorganization for clarity and to make sure
 the tests are not duplicated.

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


More information about the wp-trac mailing list