Wednesday, March 15, 2017

Laravel 5.3 TestCase withSession

I am writing unit tests for my Laravel application using PhpUnit. I cannot figure out what parameters I should pass into a TestCase's withSession method. I can see here that it's an array:

https://laravel.com/api/5.3/Illuminate/Foundation/Testing/TestCase.html https://laravel.com/docs/5.3/application-testing#sessions-and-authentication

What parameters would one use in here to persist a session? How can I find what parameters are being persisted in my sessions?



via kingpanic

Advertisement