Skip to content

Commit

Permalink
#312883 by moshe weitzman: Fix REQUEST_METHOD notice in run-tests.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
webchick committed Sep 24, 2008
1 parent 3bd2ccf commit 088e251
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// $Id: run-tests.sh,v 1.11 2008-09-24 15:48:56 webchick Exp $
// $Id: run-tests.sh,v 1.12 2008-09-24 19:00:31 webchick Exp $
/**
* @file
* This script runs Drupal tests from command line.
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 088e251

Please sign in to comment.