[wp-unit-tests] [WordPress Unit Tests] #128: Set WP_ADMIN in Ajax Unit Tests
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 4 19:25:33 UTC 2012
#128: Set WP_ADMIN in Ajax Unit Tests
-----------------------+---------------------------------------
Reporter: kurtpayne | Owner:
Type: defect | Status: new
Priority: normal | Milestone: Implement New Test Runner
Component: Ajax | Keywords:
-----------------------+---------------------------------------
Jenkins runs ajax tests with the main unit tests. Core
[http://core.trac.wordpress.org/changeset/21687 changeset 21687] broke
this since the ajax test case did not define WP_ADMIN.
We should define WP_ADMIN in the ajax testcase, but then all ajax
testcases need to run in separate processes so WP_ADMIN doesn't poison
`$current_screen->in_admin` for the rest of the tests.
--
Ticket URL: <http://unit-test.trac.wordpress.org/ticket/128>
WordPress Unit Tests <http://unit-test.trac.wordpress.org>
My example project
More information about the wp-unit-tests
mailing list