diff --git a/tests/phpunit/includes/testcase-ajax.php b/tests/phpunit/includes/testcase-ajax.php
index 2227413511..76ceb73af1 100644
|
a
|
b
|
abstract class WP_Ajax_UnitTestCase extends WP_UnitTestCase { |
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | 61 | public static function setUpBeforeClass() { |
| 62 | | add_filter( 'wp_doing_ajax', '__return_true' ); |
| 63 | | |
| 64 | 62 | remove_action( 'admin_init', '_maybe_update_core' ); |
| 65 | 63 | remove_action( 'admin_init', '_maybe_update_plugins' ); |
| 66 | 64 | remove_action( 'admin_init', '_maybe_update_themes' ); |
| … |
… |
abstract class WP_Ajax_UnitTestCase extends WP_UnitTestCase { |
| 82 | 80 | public function setUp() { |
| 83 | 81 | parent::setUp(); |
| 84 | 82 | |
| | 83 | add_filter( 'wp_doing_ajax', '__return_true' ); |
| 85 | 84 | add_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 ); |
| 86 | 85 | |
| 87 | 86 | set_current_screen( 'ajax' ); |