markwalet/laravel-testable-requests

A Laravel package to make request testing easier

v0.3.4 2024-03-14 09:51 UTC

This package is auto-updated.

Last update: 2024-11-14 11:14:27 UTC


README

MIT Licensed Latest Stable Version Total Downloads

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.