Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#34394 closed task (blessed) (fixed)

Initialise $_SERVER['SERVER_NAME'] in the unit test bootstrap

Reported by: johnbillion Owned by: johnbillion
Priority: normal Milestone: 4.4
Component: Build/Test Tools Version:
Severity: normal Keywords:
Cc: Focuses:

Description

$_SERVER['SERVER_NAME'] isn't set during the unit test bootstrap. A few individual tests get around this by manually setting and resetting its value. This should not be required.

Previously: #32636, #33877

Change History (2)

#1 @johnbillion
11 years ago

  • Owner set to johnbillion
  • Status newaccepted

#2 @johnbillion
11 years ago

  • Resolutionfixed
  • Status acceptedclosed

In 35350:

Initialise $_SERVER['SERVER_NAME'] during the test bootstrap to avoid individual tests having to do it.

Fixes #34394

Note: See TracTickets for help on using tickets.