Make WordPress Core


Ignore:
Timestamp:
10/21/2015 11:51:45 PM (10 years ago)
Author:
johnbillion
Message:

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

Fixes #34394

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/install.php

    r32785 r35350  
    1616$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
    1717$_SERVER['HTTP_HOST'] = WP_TESTS_DOMAIN;
     18$_SERVER['SERVER_NAME'] = WP_TESTS_DOMAIN;
    1819$_SERVER['REQUEST_METHOD'] = 'GET';
     20$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
     21
    1922$PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
    2023
Note: See TracChangeset for help on using the changeset viewer.