Make WordPress Core


Ignore:
Timestamp:
10/21/2015 11:51:45 PM (11 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/tests/comment.php

    r35347 r35350  
    381381        public function setup_notify_comment(){
    382382                /**
    383                  * Mock some server variables.
    384                  */
    385                 $_SERVER['SERVER_NAME'] = 'phpunit.wordpress.dev';
    386                 $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
    387 
    388                 /**
    389383                 * Prevent flood alert from firing.
    390384                 */
Note: See TracChangeset for help on using the changeset viewer.