Changeset 51568 for trunk/tests/phpunit/tests/ajax/Response.php
- Timestamp:
- 08/07/2021 10:29:41 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/Response.php
r51565 r51568 21 21 * Override wp_die(), pretend to be ajax, and suppres E_WARNINGs 22 22 */ 23 public function set Up() {24 parent::set Up();23 public function set_up() { 24 parent::set_up(); 25 25 26 26 add_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 ); … … 36 36 * Remove the wp_die() override, restore error reporting 37 37 */ 38 public function tear Down() {38 public function tear_down() { 39 39 remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 ); 40 40 error_reporting( $this->_error_level ); 41 parent::tear Down();41 parent::tear_down(); 42 42 } 43 43
Note: See TracChangeset
for help on using the changeset viewer.