In Laravel's unit test, I can test a JSON API like that:
$this->post('/user', ['name' => 'Sally'])
->seeJson([
'created' => true,
]);
But what if I want to use the response. How can I get the JSON response (as an array) using $this->post()?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NRY3wM
via IFTTT
Aucun commentaire:
Enregistrer un commentaire