markwalet/laravel-testable-requests
Laravel Testable requests
A Laravel package to make request testing easier.
This package is based on a Gist from Colin DeCarlo.
Installation
You can install this package with composer:
composer require --dev markwalet/laravel-testable-requests
Documentation
The documentation is still being worked on. For now, please look at how these classes are used by Colin himself in a Laracon Online talk in 2021
Changes made in comparison to the video:
- Improved type hinting
- Added
defaultData()method to the request - Added
assertFailsValidationFor()method to the validation result.
Testing
Run the package test suite with:
composer test
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.6.1 | ^8.2 | ^11.0| | MIT | |
| v0.6.0 | ^8.2 | ^11.0| | MIT | |
| v0.5.0 | ^8.1 | ^10.0| | MIT | |
| v0.4.1 | ^8.0 | ^10.0| | MIT | |
| v0.4.0 | ^8.0 | ^10.0| | MIT | |
| v0.3.4 | ^8.0 | ^9.0| | MIT | |
| v0.3.3 | ^8.0 | ^9.0| | MIT | |
| v0.3.2 | ^8.0 | ^9.0| | MIT | |
| v0.3.1 | ^8.0 | ^9.0| | MIT | |
| v0.3.0 | ^8.0 | ^9.0| | MIT | |
| v0.2.0 | ^8.0 | ^9.41| | MIT | |
| v0.1.1 | ^8.0 | ^9.41| | MIT | |
| v0.1.0 | ^8.0 | ^9.41| | MIT | |
| v0.0.2 | ^8.0 | ^9.41 | MIT | |
| v0.0.1 | ^8.0 | ^9.41 | MIT |