{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/9985","labels_url":"https://api.github.com/repos/laravel/framework/issues/9985/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/9985/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/9985/events","html_url":"https://github.com/laravel/framework/issues/9985","id":101817395,"number":9985,"title":"Can't mock \"Storage::get()\" and \"File::get()\".","user":{"login":"budhajeewa","id":451634,"avatar_url":"https://avatars.githubusercontent.com/u/451634?v=3","gravatar_id":"","url":"https://api.github.com/users/budhajeewa","html_url":"https://github.com/budhajeewa","followers_url":"https://api.github.com/users/budhajeewa/followers","following_url":"https://api.github.com/users/budhajeewa/following{/other_user}","gists_url":"https://api.github.com/users/budhajeewa/gists{/gist_id}","starred_url":"https://api.github.com/users/budhajeewa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/budhajeewa/subscriptions","organizations_url":"https://api.github.com/users/budhajeewa/orgs","repos_url":"https://api.github.com/users/budhajeewa/repos","events_url":"https://api.github.com/users/budhajeewa/events{/privacy}","received_events_url":"https://api.github.com/users/budhajeewa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T06:34:11Z","updated_at":"2015-08-19T06:34:11Z","closed_at":null,"body":"Neither `Storage::get()` nor `File::get()` can be mocked in Mockery. It returns the `get() cannot be mocked as it a protected method and mocking protected methods is not allowed for this mock`.\r\n\r\nMockery seems to allow mocking protected methods now using `shouldAllowMockingProtectedMethods`, it'll be great,\r\n\r\n1. if Laravel supported mocking protected methods in facades,\r\n1. or making above methods public."}}