[wp-trac] [WordPress Trac] #41561: Remove usage of DOING_AJAX in the test suite
WordPress Trac
noreply at wordpress.org
Mon Oct 23 05:10:27 UTC 2017
#41561: Remove usage of DOING_AJAX in the test suite
------------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: needs-unit-tests | Focuses:
------------------------------+--------------------------
Changes (by peterwilsoncc):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"41970"]:
{{{
#!CommitTicketReference repository="" revision="41970"
Build/Test tools: Move `wp_doing_ajax` defintion from class setup to test
setup.
Moves defintion of ajax request in `WP_Ajax_UnitTestCase` to `setUp()`
method to account for hooks being reset as part of `tearDown()`.
Props matthias.thiel for report.
Fixes #41561.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41561#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list