#312883 by moshe weitzman: Fix REQUEST_METHOD notice in run-tests.sh.

merge-requests/26/head
Angie Byron 2008-09-24 19:00:31 +00:00
parent 991ff539c3
commit 120ce90f90
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ function simpletest_script_init() {
$_SERVER['SERVER_SOFTWARE'] = 'Apache';
$_SERVER['SERVER_NAME'] = 'localhost';
$_SERVER['REQUEST_URI'] = $path .'/';
$_SERVER['REQUEST_METHOD'] = 'GET';
$_SERVER['SCRIPT_NAME'] = $path .'/index.php';
$_SERVER['PHP_SELF'] = $path .'/index.php';
$_SERVER['HTTP_USER_AGENT'] = 'Drupal command line';