Skip to content
Permalink
Browse files

Don't use deprecated method in test.

  • Loading branch information...
markstory committed Sep 30, 2016
1 parent 45ca5d0 commit 7b8b4399ea30666b2e19e98cfa70c33bd124b9e2
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/TestCase/Network/RequestTest.php
@@ -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;
@@ -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");

0 comments on commit 7b8b439

Please sign in to comment.
You can’t perform that action at this time.