From 849abab6a4d44bde04b6ae491f190e7f2cd6cc61 Mon Sep 17 00:00:00 2001 From: Chris Hallgren Date: Mon, 15 Feb 2016 19:34:05 -0600 Subject: [PATCH] Fixing test case --- lib/Cake/Test/Case/Network/CakeRequestTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Network/CakeRequestTest.php b/lib/Cake/Test/Case/Network/CakeRequestTest.php index 03bf3aa3f..307245d21 100644 --- a/lib/Cake/Test/Case/Network/CakeRequestTest.php +++ b/lib/Cake/Test/Case/Network/CakeRequestTest.php @@ -153,11 +153,11 @@ class CakeRequestTest extends CakeTestCase { */ public function testContentType() { $_SERVER['HTTP_CONTENT_TYPE'] = 'application/json'; - $request = Request::createFromGlobals(); + $request = new CakeRequest('/', false); $this->assertEquals('application/json', $request->contentType()); $_SERVER['CONTENT_TYPE'] = 'application/xml'; - $request = Request::createFromGlobals(); + $request = new CakeRequest('/', false); $this->assertEquals('application/xml', $request->contentType(), 'prefer non http header.'); }