Generated Tests

For any controller action generated by Blueprint, a corresponding HTTP Test will be generated. Each test will contain arrange, act, and assert code.

The arrange section will set up any model factories, as well as mock any of the underlying Facades used within the controller action.

Next, the act section will send the appropriate HTTP request to the route with any parameters and request data for the controller action.

Finally, the assert section will verify the response as well as the behavior for any mock.

While these tests are generated to be runnable out of the box, they are provided as a foundation. You should always review them for opportunities to strengthen their assertions and update them as you continue to write more code.