[wp-trac] [WordPress Trac] #41561: Remove usage of DOING_AJAX in the test suite
WordPress Trac
noreply at wordpress.org
Fri Aug 4 15:09:01 UTC 2017
#41561: Remove usage of DOING_AJAX in the test suite
------------------------------+-----------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords: needs-patch
Focuses: |
------------------------------+-----------------------------
In the test suite, several tests define `DOING_AJAX` to true. This
effectively pollutes the tests which follow them, and prevent any other
tests from operating in a non-Ajax state when they need to (for example,
`Tests_WP_Customize_Manager::test_not_doing_ajax()`).
Instances of DOING_AJAX should be replaced by use of a filter, for example
`add_filter( 'wp_doing_ajax', '__return_true' )`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41561>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list