Laravel provides excellent built-in testing support (on PHPUnit, with the modern Pest option) plus testing-specific helpers — a test database, HTTP testing, authentication helpers, and fakes — making applications highly testable. Tests are split into feature tests (full request flow) and unit tests (isolated logic).
Feature tests — test the full request flow
{
;
{
= ->(, [ // make a request to the app
=> , => ,
]);
->()
->([ => ]);
->(, [ => ]);
}
}
