WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#34394 closed task (blessed) (fixed)

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

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

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
6 years ago

  • Owner set to johnbillion
  • Status changed from new to accepted

#2 @johnbillion
6 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

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.