{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/9632","labels_url":"https://api.github.com/repos/laravel/framework/issues/9632/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/9632/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/9632/events","html_url":"https://github.com/laravel/framework/issues/9632","id":95179543,"number":9632,"title":"Session store not set on request.","user":{"login":"zaalbarxx","id":3301242,"avatar_url":"https://avatars.githubusercontent.com/u/3301242?v=3","gravatar_id":"","url":"https://api.github.com/users/zaalbarxx","html_url":"https://github.com/zaalbarxx","followers_url":"https://api.github.com/users/zaalbarxx/followers","following_url":"https://api.github.com/users/zaalbarxx/following{/other_user}","gists_url":"https://api.github.com/users/zaalbarxx/gists{/gist_id}","starred_url":"https://api.github.com/users/zaalbarxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaalbarxx/subscriptions","organizations_url":"https://api.github.com/users/zaalbarxx/orgs","repos_url":"https://api.github.com/users/zaalbarxx/repos","events_url":"https://api.github.com/users/zaalbarxx/events{/privacy}","received_events_url":"https://api.github.com/users/zaalbarxx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laravel/framework/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-15T12:22:11Z","updated_at":"2015-07-16T19:56:56Z","closed_at":null,"body":"There is a problem during unit testing when ``Input::old()`` is being called. It then throws an ``RuntimeException(\"Session store not set on request.\");`` I am not sure what is the reason of that, but the problem exists in both Laravel 4.2 and 5.1. Is that bug or something that was intended and if so what is the solution to fix this besides of checking ``App::isRunningUnitTests()`` which I would rather like to avoid ? Session driver in config is set to ``array``."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/122070654","html_url":"https://github.com/laravel/framework/issues/9632#issuecomment-122070654","issue_url":"https://api.github.com/repos/laravel/framework/issues/9632","id":122070654,"user":{"login":"zaalbarxx","id":3301242,"avatar_url":"https://avatars.githubusercontent.com/u/3301242?v=3","gravatar_id":"","url":"https://api.github.com/users/zaalbarxx","html_url":"https://github.com/zaalbarxx","followers_url":"https://api.github.com/users/zaalbarxx/followers","following_url":"https://api.github.com/users/zaalbarxx/following{/other_user}","gists_url":"https://api.github.com/users/zaalbarxx/gists{/gist_id}","starred_url":"https://api.github.com/users/zaalbarxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaalbarxx/subscriptions","organizations_url":"https://api.github.com/users/zaalbarxx/orgs","repos_url":"https://api.github.com/users/zaalbarxx/repos","events_url":"https://api.github.com/users/zaalbarxx/events{/privacy}","received_events_url":"https://api.github.com/users/zaalbarxx/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T19:56:56Z","updated_at":"2015-07-16T19:56:56Z","body":"The solution I used in my case was setting session to request manually in ``setUp`` method of PHPUnit. Like \r\n``$this->app['request']->setSession($this->app['session']->driver('array'));``\r\nNot sure if that's the best solution, it worked for me, still not optimal as it should be handled by framework I believe."}}