Changeset 51568 for trunk/tests/phpunit/includes/testcase-ajax.php
- Timestamp:
- 08/07/2021 10:29:41 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase-ajax.php
r50450 r51568 116 116 ); 117 117 118 public static function set UpBeforeClass() {119 parent::set UpBeforeClass();118 public static function set_up_before_class() { 119 parent::set_up_before_class(); 120 120 121 121 remove_action( 'admin_init', '_maybe_update_core' ); … … 136 136 * Overrides wp_die(), pretends to be Ajax, and suppresses E_WARNINGs. 137 137 */ 138 public function set Up() {139 parent::set Up();138 public function set_up() { 139 parent::set_up(); 140 140 141 141 add_filter( 'wp_doing_ajax', '__return_true' ); … … 157 157 * Resets $_POST, removes the wp_die() override, restores error reporting. 158 158 */ 159 public function tear Down() {159 public function tear_down() { 160 160 $_POST = array(); 161 161 $_GET = array(); … … 166 166 error_reporting( $this->_error_level ); 167 167 set_current_screen( 'front' ); 168 parent::tear Down();168 parent::tear_down(); 169 169 } 170 170
Note: See TracChangeset
for help on using the changeset viewer.