mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing a couple of tests in CakeRequest
This commit is contained in:
parent
ca99b5b515
commit
c208e4ed30
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue