Skip to content

Commit

Permalink
Don't use deprecated method in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 30, 2016
1 parent 45ca5d0 commit 7b8b439
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/TestCase/Network/RequestTest.php
Expand Up @@ -15,6 +15,7 @@
namespace Cake\Test\TestCase\Network;

use Cake\Core\Configure;
use Cake\Http\ServerRequestFactory;
use Cake\Network\Exception;
use Cake\Network\Request;
use Cake\Network\Session;
Expand Down Expand Up @@ -2366,7 +2367,7 @@ public function testEnvironmentDetection($name, $env, $expected)
$_GET = [];
$this->_loadEnvironment($env);

$request = Request::createFromGlobals();
$request = ServerRequestFactory::fromGlobals();
$uri = $request->getUri();

$this->assertEquals($expected['url'], $request->url, "URL is incorrect");
Expand Down

0 comments on commit 7b8b439

Please sign in to comment.