{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7380","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7380/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7380/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7380/events","html_url":"https://github.com/cakephp/cakephp/pull/7380","id":105776047,"number":7380,"title":"Add a Cache::registry method","user":{"login":"dakota","id":83255,"avatar_url":"https://avatars.githubusercontent.com/u/83255?v=3","gravatar_id":"","url":"https://api.github.com/users/dakota","html_url":"https://github.com/dakota","followers_url":"https://api.github.com/users/dakota/followers","following_url":"https://api.github.com/users/dakota/following{/other_user}","gists_url":"https://api.github.com/users/dakota/gists{/gist_id}","starred_url":"https://api.github.com/users/dakota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dakota/subscriptions","organizations_url":"https://api.github.com/users/dakota/orgs","repos_url":"https://api.github.com/users/dakota/repos","events_url":"https://api.github.com/users/dakota/events{/privacy}","received_events_url":"https://api.github.com/users/dakota/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Enhancement","name":"Enhancement","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/59","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.14","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/59/labels","id":1292952,"number":59,"title":"3.0.14","description":"Bugfixes and minor enhancements for 3.0.x","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":20,"closed_issues":13,"state":"open","created_at":"2015-09-07T02:11:05Z","updated_at":"2015-09-10T10:13:56Z","due_on":"2015-09-27T04:00:00Z","closed_at":null},"comments":3,"created_at":"2015-09-10T10:07:58Z","updated_at":"2015-09-10T12:13:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/7380","html_url":"https://github.com/cakephp/cakephp/pull/7380","diff_url":"https://github.com/cakephp/cakephp/pull/7380.diff","patch_url":"https://github.com/cakephp/cakephp/pull/7380.patch"},"body":"Useful method for injecting cache engine mocks for example.\r\n\r\n```php\r\n$mock = $this->getMock('\\Cake\\Cache\\Engine\\NullEngine');\r\n$mock->expects($this->once())->method('read')->willReturn(['value']);\r\nCache::registry()->set('default', $mock);\r\n```\r\nFor example."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/139216462","html_url":"https://github.com/cakephp/cakephp/pull/7380#issuecomment-139216462","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7380","id":139216462,"user":{"login":"ADmad","id":142658,"avatar_url":"https://avatars.githubusercontent.com/u/142658?v=3","gravatar_id":"","url":"https://api.github.com/users/ADmad","html_url":"https://github.com/ADmad","followers_url":"https://api.github.com/users/ADmad/followers","following_url":"https://api.github.com/users/ADmad/following{/other_user}","gists_url":"https://api.github.com/users/ADmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ADmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADmad/subscriptions","organizations_url":"https://api.github.com/users/ADmad/orgs","repos_url":"https://api.github.com/users/ADmad/repos","events_url":"https://api.github.com/users/ADmad/events{/privacy}","received_events_url":"https://api.github.com/users/ADmad/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T12:13:51Z","updated_at":"2015-09-10T12:13:51Z","body":":+1: "}}