Answer the question
In order to leave comments, you need to log in
How to lock the session with the desired values?
$session = \Mockery::mock(\Symfony\Component\HttpFoundation\Session\Session::class);
$session->shouldReceive('set', 'all', 'get')->once()->andReturnSelf();
$session->set('myKey', 'myValue');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question