[wp-trac] [WordPress Trac] #60193: Tests: Expand hook priority call order tests
WordPress Trac
noreply at wordpress.org
Tue Jan 9 16:32:30 UTC 2024
#60193: Tests: Expand hook priority call order tests
---------------------------------------------+-----------------------------
Reporter: hellofromTonya | Owner: hellofromTonya
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.5
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------------
Changes (by hellofromTonya):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"57257" 57257]:
{{{
#!CommitTicketReference repository="" revision="57257"
Tests: Add hook priority call order tests.
Adds happy (integer) and unhappy (non-integer) tests for validating the
priority call order for:
* `do_action()`
* `WP_Hook::do_action()`
* `apply_filters()`
* `WP_Hook::apply_filters()`
As each of these functions have differing code, the tests are added to
each to ensure expected results and protect against future regressions.
Follow-up to [53804], [52010], [25002], [25/tests], [62/tests].
Props hellofromTonya, mukesh27, dd32, valendesigns, drrobotnik.
Fixes #60193.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60193#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list