Changeset 57987 for trunk/tests/phpunit/includes/testcase-ajax.php
- Timestamp:
- 04/12/2024 05:45:23 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-ajax.php
r51568 r57987 134 134 * Sets up the test fixture. 135 135 * 136 * Overrides wp_die(), pretends to be Ajax, and suppresses E_WARNINGs.136 * Overrides wp_die(), pretends to be Ajax, and suppresses warnings. 137 137 */ 138 138 public function set_up() { … … 162 162 unset( $GLOBALS['post'] ); 163 163 unset( $GLOBALS['comment'] ); 164 remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1 , 1);164 remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1 ); 165 165 remove_action( 'clear_auth_cookie', array( $this, 'logout' ) ); 166 166 error_reporting( $this->_error_level );
Note: See TracChangeset
for help on using the changeset viewer.