Changeset 36715 for trunk/tests/phpunit/includes/bootstrap.php
- Timestamp:
- 02/25/2016 09:59:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/bootstrap.php
r36563 r36715 23 23 } 24 24 require_once $config_file_path; 25 require_once dirname( __FILE__ ) . '/functions.php'; 26 27 tests_reset_SERVER(); 25 28 26 29 define( 'WP_TESTS_TABLE_PREFIX', $table_prefix ); … … 37 40 define( 'WP_MEMORY_LIMIT', -1 ); 38 41 define( 'WP_MAX_MEMORY_LIMIT', -1 ); 39 40 $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';41 $_SERVER['HTTP_HOST'] = WP_TESTS_DOMAIN;42 $_SERVER['SERVER_NAME'] = WP_TESTS_DOMAIN;43 $_SERVER['REQUEST_METHOD'] = 'GET';44 $_SERVER['REMOTE_ADDR'] = '127.0.0.1';45 42 46 43 $PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php'; … … 68 65 } 69 66 unset( $multisite ); 70 71 require_once dirname( __FILE__ ) . '/functions.php';72 67 73 68 $GLOBALS['_wp_die_disabled'] = false;
Note: See TracChangeset
for help on using the changeset viewer.