I'm using laravel 5.1 and I want to test the type of the returned data. This is what my controller returns return response()->json(['success' => true, 'data' => $var]);
In the test I want to check the type of the $var (if it's an array or not). This is what I did but it doesn't works. $this->get('/app') ->seeJson(['success'=>true, 'data'=>[]]);
Thanks!
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1UeJcTo
via IFTTT
Aucun commentaire:
Enregistrer un commentaire