Andreas
Andreas

Reputation: 45

Laravel PHPUNIT how do you test the queries requests

I have a function (data) on my application controller that makes the data tables (does all the queries to find the information and sent the request to the application(the data with all the information that the queries returned)). The thing that I want to test is:

When the requests are made to the network if they are slow (or have some delay).

How many SQL requests are made.

How do I do this PHPUnit test on Laravel?

I added the clockwork debug tool to give me some additional information.

Upvotes: 1

Views: 968

Answers (1)

Related Questions