Browse Source

Fixed Cake\TestSuite\Stub\Response

Ondrej Mirtes 9 years ago
parent
commit
604e9a24fa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/TestSuite/Stub/Response.php

+ 2 - 2
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();