[wp-trac] [WordPress Trac] #32636: $_SERVER['REQUEST_METHOD'] isn't set in the test environment

WordPress Trac noreply at wordpress.org
Sat Jun 13 15:38:48 UTC 2015

#32636: $_SERVER['REQUEST_METHOD'] isn't set in the test environment
 Reporter:  johnbillion       |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:                    |
 A plugin of mine calls `wp_validate_auth_cookie()` in its unit tests, but
 this triggers a PHP notice because this function uses
 `$_SERVER['REQUEST_METHOD']` which isn't set in the WordPress unit test

Ticket URL: <https://core.trac.wordpress.org/ticket/32636>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list