Open LocalHeroPro opened 3 years ago
When I use in controller:
return back()->with('status', ['type' => 'success', 'message' => __('The settings have been updated.')]);
How I can check what I received in response? I try:
$a = $session->baseResponse; $b = $a->session;
but get in terminal:
PHPUnit 9.4.2 by Sebastian Bergmann and contributors. array:3 [ "_token" => "ANrtLX7nKOYnXE44UxRGuBUdnvMSBfkN9TnPmSen" "status" => array:2 [ "type" => "success" "message" => "The settings have been updated." ] "_flash" => array:2 [ "new" => [] "old" => array:1 [ 0 => "status" ] ] ] Error : Cannot access protected property Illuminate\Http\RedirectResponse::$session
So terminal showing for me protected propertys ;) But I want get access to that propertys and after that assert them, with something similar:
self::assertEquals($b['status']['message'], __('The settings have been updated.')).
When I use in controller:
How I can check what I received in response? I try:
but get in terminal:
So terminal showing for me protected propertys ;) But I want get access to that propertys and after that assert them, with something similar: