[wp-trac] [WordPress Trac] #32636: $_SERVER['REQUEST_METHOD'] isn't set in the test environment
WordPress Trac
noreply at wordpress.org
Sat Jun 13 16:11:25 UTC 2015
#32636: $_SERVER['REQUEST_METHOD'] isn't set in the test environment
------------------------------+------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.3
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------+------------------
Comment (by johnbillion):
The AJAX tests do indeed pass. They look at `DOING_AJAX` and the `$_POST`
superglobal, but not the request method.
I've just noticed that `Tests_Auth:setUp()` explicitly sets
`$_SERVER['REQUEST_METHOD']` to `null`, presumably to avoid said PHP
notice.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32636#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list