From 604e9a24fad2e4a6fb8d6366fe8355c9f2a91019 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sun, 8 Jan 2017 17:52:41 +0100 Subject: [PATCH] Fixed Cake\TestSuite\Stub\Response --- src/TestSuite/Stub/Response.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TestSuite/Stub/Response.php b/src/TestSuite/Stub/Response.php index 4a6439ede3d..74ec3c51a22 100644 --- a/src/TestSuite/Stub/Response.php +++ b/src/TestSuite/Stub/Response.php @@ -13,7 +13,7 @@ */ namespace Cake\TestSuite\Stub; -use Cake\Network\Response as Base; +use Cake\Http\Response as Base; /** * A response class intended for test cases. @@ -28,7 +28,7 @@ class Response extends Base */ public function send() { - if (isset($this->_headers['Location']) && $this->_status === 200) { + if ($this->hasHeader('Location') && $this->_status === 200) { $this->statusCode(302); } $this->_setContentType();