Set $_SERVER['REQUEST_METHOD'] = null
in Tests_Auth::setUp()
to suppress undefined index notices when wp_validate_auth_cookie()
is called.
See #25282. git-svn-id: https://develop.svn.wordpress.org/trunk@25363 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e7c543f997
commit
169ddb12ad
@ -9,6 +9,8 @@ class Tests_Auth extends WP_UnitTestCase {
|
||||
function setUp() {
|
||||
parent::setUp();
|
||||
$this->user_id = $this->factory->user->create();
|
||||
|
||||
$_SERVER['REQUEST_METHOD'] = null;
|
||||
}
|
||||
|
||||
function test_auth_cookie_valid() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user