Skip to content

Commit

Permalink
Fixed Cake\TestSuite\Stub\Response
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Feb 10, 2017
1 parent b6832f2 commit 604e9a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TestSuite/Stub/Response.php
Expand Up @@ -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.
Expand All @@ -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();
Expand Down

0 comments on commit 604e9a2

Please sign in to comment.