Laravel 4 testing session in controllers
问题 I have a problem with testing controllers in Laravel 4. I have the next code: public function getRemind() { $status = \Session::get('status'); $error = \Session::get('error'); $email = \Session::get('email'); return \View::make('admin/reminds/remind_form', compact('status', 'error', 'email')); } And I want to test if correct data passed in views by controller: public function testGetRemind() { \Session::set('status', 'status'); \Session::set('error', 'error'); \Session::set('email', 'email');