{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfCake/crud/pulls/comments/23593277","id":23593277,"diff_hunk":"@@ -1027,40 +1027,40 @@ public function testSetupDetectorsIntigration()\n      *\n      * @return void\n      */\n-    public function testRegisterExceptionHandlerWithApi()\n-    {\n-        $listener = $this\n-            ->getMockBuilder('\\Crud\\Listener\\ApiListener')\n-            ->setMethods(null)\n-            ->disableOriginalConstructor()\n-            ->getMock();\n-\n-        $listener->registerExceptionHandler();\n-\n-        $expected = 'Crud\\Error\\ExceptionRenderer';\n-        $result = Configure::read('Error.exceptionRenderer');\n-        $this->assertEquals($expected, $result);\n-    }\n+    // public function testRegisterExceptionHandlerWithApi()","path":"tests/TestCase/Listener/ApiListenerTest.php","position":18,"original_position":18,"commit_id":"4b09a554bc251c0980966da92ab701bc773659b9","original_commit_id":"4b09a554bc251c0980966da92ab701bc773659b9","user":{"login":"jippi","id":22841,"avatar_url":"https://avatars.githubusercontent.com/u/22841?v=3","gravatar_id":"","url":"https://api.github.com/users/jippi","html_url":"https://github.com/jippi","followers_url":"https://api.github.com/users/jippi/followers","following_url":"https://api.github.com/users/jippi/following{/other_user}","gists_url":"https://api.github.com/users/jippi/gists{/gist_id}","starred_url":"https://api.github.com/users/jippi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jippi/subscriptions","organizations_url":"https://api.github.com/users/jippi/orgs","repos_url":"https://api.github.com/users/jippi/repos","events_url":"https://api.github.com/users/jippi/events{/privacy}","received_events_url":"https://api.github.com/users/jippi/received_events","type":"User","site_admin":false},"body":"just remove dead code or fix it ;)","created_at":"2015-01-27T08:39:22Z","updated_at":"2015-01-27T08:39:22Z","html_url":"https://github.com/FriendsOfCake/crud/pull/242#discussion_r23593277","pull_request_url":"https://api.github.com/repos/FriendsOfCake/crud/pulls/242","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfCake/crud/pulls/comments/23593277"},"html":{"href":"https://github.com/FriendsOfCake/crud/pull/242#discussion_r23593277"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfCake/crud/pulls/242"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfCake/crud/pulls/242","id":28083860,"html_url":"https://github.com/FriendsOfCake/crud/pull/242","diff_url":"https://github.com/FriendsOfCake/crud/pull/242.diff","patch_url":"https://github.com/FriendsOfCake/crud/pull/242.patch","issue_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/242","number":242,"state":"open","locked":false,"title":"Fix API exception rendering","user":{"login":"jadb","id":33527,"avatar_url":"https://avatars.githubusercontent.com/u/33527?v=3","gravatar_id":"","url":"https://api.github.com/users/jadb","html_url":"https://github.com/jadb","followers_url":"https://api.github.com/users/jadb/followers","following_url":"https://api.github.com/users/jadb/following{/other_user}","gists_url":"https://api.github.com/users/jadb/gists{/gist_id}","starred_url":"https://api.github.com/users/jadb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadb/subscriptions","organizations_url":"https://api.github.com/users/jadb/orgs","repos_url":"https://api.github.com/users/jadb/repos","events_url":"https://api.github.com/users/jadb/events{/privacy}","received_events_url":"https://api.github.com/users/jadb/received_events","type":"User","site_admin":false},"body":"As it was, the `ExceptionRenderer` was not being registered by the listener\r\nand the `Cake\\Network\\Response` was not properly returned on validation\r\nexception rendering.","created_at":"2015-01-27T04:54:13Z","updated_at":"2015-01-27T08:39:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe4632b5956b619496658766f93fbc06c983bada","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfCake/crud/pulls/242/commits","review_comments_url":"https://api.github.com/repos/FriendsOfCake/crud/pulls/242/comments","review_comment_url":"https://api.github.com/repos/FriendsOfCake/crud/pulls/comments/{number}","comments_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/242/comments","statuses_url":"https://api.github.com/repos/FriendsOfCake/crud/statuses/4b09a554bc251c0980966da92ab701bc773659b9","head":{"label":"FriendsOfCake:3.0-fix-api-exceptions","ref":"3.0-fix-api-exceptions","sha":"4b09a554bc251c0980966da92ab701bc773659b9","user":{"login":"FriendsOfCake","id":5203126,"avatar_url":"https://avatars.githubusercontent.com/u/5203126?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfCake","html_url":"https://github.com/FriendsOfCake","followers_url":"https://api.github.com/users/FriendsOfCake/followers","following_url":"https://api.github.com/users/FriendsOfCake/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfCake/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfCake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfCake/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfCake/orgs","repos_url":"https://api.github.com/users/FriendsOfCake/repos","events_url":"https://api.github.com/users/FriendsOfCake/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfCake/received_events","type":"Organization","site_admin":false},"repo":{"id":10498102,"name":"crud","full_name":"FriendsOfCake/crud","owner":{"login":"FriendsOfCake","id":5203126,"avatar_url":"https://avatars.githubusercontent.com/u/5203126?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfCake","html_url":"https://github.com/FriendsOfCake","followers_url":"https://api.github.com/users/FriendsOfCake/followers","following_url":"https://api.github.com/users/FriendsOfCake/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfCake/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfCake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfCake/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfCake/orgs","repos_url":"https://api.github.com/users/FriendsOfCake/repos","events_url":"https://api.github.com/users/FriendsOfCake/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfCake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfCake/crud","description":"CakePHP Application development on steroids - rapid prototyping / scaffolding & production ready code - JSON APIs and more","fork":false,"url":"https://api.github.com/repos/FriendsOfCake/crud","forks_url":"https://api.github.com/repos/FriendsOfCake/crud/forks","keys_url":"https://api.github.com/repos/FriendsOfCake/crud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfCake/crud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfCake/crud/teams","hooks_url":"https://api.github.com/repos/FriendsOfCake/crud/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfCake/crud/events","assignees_url":"https://api.github.com/repos/FriendsOfCake/crud/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfCake/crud/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfCake/crud/tags","blobs_url":"https://api.github.com/repos/FriendsOfCake/crud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfCake/crud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfCake/crud/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfCake/crud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfCake/crud/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfCake/crud/languages","stargazers_url":"https://api.github.com/repos/FriendsOfCake/crud/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfCake/crud/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfCake/crud/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfCake/crud/subscription","commits_url":"https://api.github.com/repos/FriendsOfCake/crud/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfCake/crud/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfCake/crud/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/comments/{number}","contents_url":"https://api.github.com/repos/FriendsOfCake/crud/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfCake/crud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfCake/crud/merges","archive_url":"https://api.github.com/repos/FriendsOfCake/crud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfCake/crud/downloads","issues_url":"https://api.github.com/repos/FriendsOfCake/crud/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfCake/crud/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfCake/crud/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfCake/crud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfCake/crud/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfCake/crud/releases{/id}","created_at":"2013-06-05T08:21:11Z","updated_at":"2015-01-24T16:17:18Z","pushed_at":"2015-01-27T07:01:08Z","git_url":"git://github.com/FriendsOfCake/crud.git","ssh_url":"git@github.com:FriendsOfCake/crud.git","clone_url":"https://github.com/FriendsOfCake/crud.git","svn_url":"https://github.com/FriendsOfCake/crud","homepage":"http://crud.readthedocs.org/en/latest/","size":9835,"stargazers_count":148,"watchers_count":148,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":55,"mirror_url":null,"open_issues_count":7,"forks":55,"open_issues":7,"watchers":148,"default_branch":"master"}},"base":{"label":"FriendsOfCake:cake3","ref":"cake3","sha":"7a12a352b73b4d1ca476df6e14f76f0c3c622ef3","user":{"login":"FriendsOfCake","id":5203126,"avatar_url":"https://avatars.githubusercontent.com/u/5203126?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfCake","html_url":"https://github.com/FriendsOfCake","followers_url":"https://api.github.com/users/FriendsOfCake/followers","following_url":"https://api.github.com/users/FriendsOfCake/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfCake/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfCake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfCake/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfCake/orgs","repos_url":"https://api.github.com/users/FriendsOfCake/repos","events_url":"https://api.github.com/users/FriendsOfCake/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfCake/received_events","type":"Organization","site_admin":false},"repo":{"id":10498102,"name":"crud","full_name":"FriendsOfCake/crud","owner":{"login":"FriendsOfCake","id":5203126,"avatar_url":"https://avatars.githubusercontent.com/u/5203126?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfCake","html_url":"https://github.com/FriendsOfCake","followers_url":"https://api.github.com/users/FriendsOfCake/followers","following_url":"https://api.github.com/users/FriendsOfCake/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfCake/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfCake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfCake/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfCake/orgs","repos_url":"https://api.github.com/users/FriendsOfCake/repos","events_url":"https://api.github.com/users/FriendsOfCake/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfCake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfCake/crud","description":"CakePHP Application development on steroids - rapid prototyping / scaffolding & production ready code - JSON APIs and more","fork":false,"url":"https://api.github.com/repos/FriendsOfCake/crud","forks_url":"https://api.github.com/repos/FriendsOfCake/crud/forks","keys_url":"https://api.github.com/repos/FriendsOfCake/crud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfCake/crud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfCake/crud/teams","hooks_url":"https://api.github.com/repos/FriendsOfCake/crud/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfCake/crud/events","assignees_url":"https://api.github.com/repos/FriendsOfCake/crud/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfCake/crud/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfCake/crud/tags","blobs_url":"https://api.github.com/repos/FriendsOfCake/crud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfCake/crud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfCake/crud/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfCake/crud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfCake/crud/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfCake/crud/languages","stargazers_url":"https://api.github.com/repos/FriendsOfCake/crud/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfCake/crud/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfCake/crud/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfCake/crud/subscription","commits_url":"https://api.github.com/repos/FriendsOfCake/crud/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfCake/crud/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfCake/crud/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfCake/crud/issues/comments/{number}","contents_url":"https://api.github.com/repos/FriendsOfCake/crud/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfCake/crud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfCake/crud/merges","archive_url":"https://api.github.com/repos/FriendsOfCake/crud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfCake/crud/downloads","issues_url":"https://api.github.com/repos/FriendsOfCake/crud/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfCake/crud/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfCake/crud/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfCake/crud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfCake/crud/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfCake/crud/releases{/id}","created_at":"2013-06-05T08:21:11Z","updated_at":"2015-01-24T16:17:18Z","pushed_at":"2015-01-27T07:01:08Z","git_url":"git://github.com/FriendsOfCake/crud.git","ssh_url":"git@github.com:FriendsOfCake/crud.git","clone_url":"https://github.com/FriendsOfCake/crud.git","svn_url":"https://github.com/FriendsOfCake/crud","homepage":"http://crud.readthedocs.org/en/latest/","size":9835,"stargazers_count":148,"watchers_count":148,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":55,"mirror_url":null,"open_issues_count":7,"forks":55,"open_issues":7,"watchers":148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfCake/crud/pulls/242"},"html":{"href":"https://github.com/FriendsOfCake/crud/pull/242"},"issue":{"href":"https://api.github.com/repos/FriendsOfCake/crud/issues/242"},"comments":{"href":"https://api.github.com/repos/FriendsOfCake/crud/issues/242/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfCake/crud/pulls/242/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfCake/crud/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfCake/crud/pulls/242/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfCake/crud/statuses/4b09a554bc251c0980966da92ab701bc773659b9"}}}}