PHPnews.io

How to Test Validation Errors

Written by Laracasts / Original link on Mar. 22, 2017

We haven't written any validation logic yet for our forum. This means that a user could whip up a request with all sorts of invalid data, and we'd gladly persist it to the database. Let's fix that in this episode, while writing tests to ensure that everything functions as we expect. View the source for this episode on GitHub.

laracasts

« Users Can Filter Threads By Channel - A Thread Should Be Assigned a Channel »