N
N
Nikita Dergachov2017-11-09 11:36:32
PHPUnit
Nikita Dergachov, 2017-11-09 11:36:32

How to test 3rd party api's in laravel?

I need to test the api of a third-party application, if I write the full address in the test, it gives an error that the route was not found.

$this->json('GET', 'https://fullurl.com/test')
        ->assertJsonStructure([
            'name'
        ]);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question