How can I run a webtestcase agains an API? The default guide regarding functional tests only give the following command:
$client = static::createClient();
$crawler = $client->request('GET', '/some-url');
The Crawler class is a DOM crawler. I checked the reference for the FrameworkBundle\Client class and I couldn't find a method that will allow me to make a request that returns raw Response. At least that way, I will be able to json_decode the output and do my tests.
What can I use to achieve this?
Aucun commentaire:
Enregistrer un commentaire