mercredi 26 avril 2017

how i can write test for function return json data in laravel

I have a function it return json data

return response()->json([
  'status' => 'OK',
  'data' => [
      'id' => $dataInfo->id,
  ],
]);

how I can solve this in testing for function ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire