Fixing a couple of tests in CakeRequest

This commit is contained in:
Jose Lorenzo Rodriguez 2011-05-09 00:28:01 -04:30
parent ca99b5b515
commit c208e4ed30

View file

@ -1039,6 +1039,7 @@ class CakeRequestTestCase extends CakeTestCase {
'REQUEST_URI' => '/index.php?/posts/add',
'PHP_SELF' => '',
'URL' => '/index.php?/posts/add',
'DOCUMENT_ROOT' => 'C:\\Inetpub\\wwwroot',
'argv' => array('/posts/add'),
'argc' => 1
),
@ -1317,6 +1318,7 @@ class CakeRequestTestCase extends CakeTestCase {
* @return void
*/
public function testEnvironmentDetection($name, $env, $expected) {
$_GET = array();
$this->__loadEnvironment($env);
$request = new CakeRequest();