[wp-trac] [WordPress Trac] #60193: Tests: Expand hook priority call order tests

WordPress Trac noreply at wordpress.org
Tue Jan 9 15:24:10 UTC 2024


#60193: Tests: Expand hook priority call order tests
---------------------------------------------+-----------------------------
 Reporter:  hellofromTonya                   |       Owner:  hellofromTonya
     Type:  enhancement                      |      Status:  assigned
 Priority:  normal                           |   Milestone:  6.5
Component:  Build/Test Tools                 |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by hellofromTonya):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests commit


Comment:

 Patch: https://github.com/WordPress/wordpress-develop/pull/5841

 The patch is ready for commit.

 It adds happy and unhappy path priority callback order tests for:

 - `do_action()`
 - `WP_Hook::do_action()`
 - `apply_filters()`
 - `WP_Hook::apply_filters()`

 Though these tests may seem redundant, each of these functions have
 differing code that may impact the results. Thus testing each ensures the
 expected results and can help to protect against future regressions.

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


More information about the wp-trac mailing list