{"action":"closed","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/6340","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/6340/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/6340/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/6340/events","html_url":"https://github.com/cakephp/cakephp/issues/6340","id":68590732,"number":6340,"title":"Stubbed Response objects in controller unit tests do not set their magic headers","user":{"login":"jellehenkens","id":144886,"avatar_url":"https://avatars.githubusercontent.com/u/144886?v=3","gravatar_id":"","url":"https://api.github.com/users/jellehenkens","html_url":"https://github.com/jellehenkens","followers_url":"https://api.github.com/users/jellehenkens/followers","following_url":"https://api.github.com/users/jellehenkens/following{/other_user}","gists_url":"https://api.github.com/users/jellehenkens/gists{/gist_id}","starred_url":"https://api.github.com/users/jellehenkens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jellehenkens/subscriptions","organizations_url":"https://api.github.com/users/jellehenkens/orgs","repos_url":"https://api.github.com/users/jellehenkens/repos","events_url":"https://api.github.com/users/jellehenkens/events{/privacy}","received_events_url":"https://api.github.com/users/jellehenkens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Defect","name":"Defect","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/36","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.2","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/36/labels","id":1053402,"number":36,"title":"3.0.2","description":"Bugfixes and optimisations for 3.0","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":47,"state":"open","created_at":"2015-04-05T14:22:30Z","updated_at":"2015-04-18T00:14:02Z","due_on":"2015-04-19T04:00:00Z","closed_at":null},"comments":9,"created_at":"2015-04-15T06:30:26Z","updated_at":"2015-04-18T00:14:02Z","closed_at":"2015-04-18T00:14:02Z","body":"Because [TestSuite/Stub/Response](https://github.com/cakephp/cakephp/blob/master/src/TestSuite/Stub/Response.php) overwrites the send(), methods like _setContentType never get executed.\r\n\r\nThis affects controller unit tests with false data. Content-Type for example never gets set if it got configured with Response->type()."}}