wordpress-develop/tests/phpunit/tests/hooks
Tonya Mork 52720efece 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@57257 602fd350-edb4-49c9-b593-d223f7449a82
2024-01-09 16:32:14 +00:00
..
addFilter.php Plugins: Store result of call to array_keys, to save repeated calls in WP_Hook class. 2023-09-18 12:39:18 +00:00
applyFilters.php Tests: Add hook priority call order tests. 2024-01-09 16:32:14 +00:00
doAction.php Tests: Add hook priority call order tests. 2024-01-09 16:32:14 +00:00
doAllHook.php Tests: Update the terminology used for action or filter names in hook tests. 2022-07-31 15:03:46 +00:00
hasFilter.php Tests: Update the terminology used for action or filter names in hook tests. 2022-07-31 15:03:46 +00:00
hasFilters.php Tests: Update the terminology used for action or filter names in hook tests. 2022-07-31 15:03:46 +00:00
iterator.php Tests: Update the terminology used for action or filter names in hook tests. 2022-07-31 15:03:46 +00:00
preinitHooks.php Tests: Update the terminology used for action or filter names in hook tests. 2022-07-31 15:03:46 +00:00
removeAllFilters.php Plugins: Store result of call to array_keys, to save repeated calls in WP_Hook class. 2023-09-18 12:39:18 +00:00
removeFilter.php Plugins: Store result of call to array_keys, to save repeated calls in WP_Hook class. 2023-09-18 12:39:18 +00:00