Changeset 61604
- Timestamp:
- 02/09/2026 06:42:51 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r61589 r61604 161 161 * After a test method runs, resets any state in WordPress the test method might have changed. 162 162 * 163 * @global wpdb $wpdb WordPress database abstraction object.164 * @global WP_Query $wp_the_query WordPress Query object.165 * @global WP_Query $wp_query WordPress Query object.166 * @global WP $wp WordPress environment object.163 * @global wpdb $wpdb WordPress database abstraction object. 164 * @global WP_Query $wp_the_query Main WordPress query object. 165 * @global WP_Query $wp_query WordPress query object. 166 * @global WP $wp WordPress environment object. 167 167 */ 168 168 public function tear_down() { … … 371 371 * on a class variable so they can be restored on tear_down() using _restore_hooks(). 372 372 * 373 * @global array $wp_filter Stores all of the filters and actions.374 * @global array $wp_actions Stores the number of times each action was triggered.375 * @global array $wp_filters Stores the number of times each filter was triggered.376 * @global array $wp_current_filter Stores the list of current filters with the current one last.373 * @global array $wp_filter All of the filters and actions. 374 * @global array $wp_actions The number of times each action was triggered. 375 * @global array $wp_filters The number of times each filter was triggered. 376 * @global array $wp_current_filter The list of current filters with the current one last. 377 377 */ 378 378 protected function _backup_hooks() { … … 394 394 * so that future tests aren't affected by hooks set during this last test. 395 395 * 396 * @global array $wp_filter Stores all of the filters and actions.397 * @global array $wp_actions Stores the number of times each action was triggered.398 * @global array $wp_filters Stores the number of times each filter was triggered.399 * @global array $wp_current_filter Stores the list of current filters with the current one last.396 * @global array $wp_filter All of the filters and actions. 397 * @global array $wp_actions The number of times each action was triggered. 398 * @global array $wp_filters The number of times each filter was triggered. 399 * @global array $wp_current_filter The list of current filters with the current one last. 400 400 */ 401 401 protected function _restore_hooks() {
Note: See TracChangeset
for help on using the changeset viewer.