Make WordPress Core


Ignore:
Timestamp:
08/22/2017 03:07:42 PM (8 years ago)
Author:
johnbillion
Message:

Build/Test tools: Remove usage of DOING_AJAX from the test suite, so all tests that expect either an Ajax request or a
non-Ajax request can operate without being skipped.

Props Mte90

Fixes #41561

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase-ajax.php

    r41119 r41293  
    6060
    6161    public static function setUpBeforeClass() {
    62         if ( ! defined( 'DOING_AJAX' ) ) {
    63             define( 'DOING_AJAX', true );
    64         }
     62        add_filter( 'wp_doing_ajax', '__return_true' );     
    6563
    6664        remove_action( 'admin_init', '_maybe_update_core' );
Note: See TracChangeset for help on using the changeset viewer.