paulund/auth-tests

This package is abandoned and no longer maintained. No replacement package was suggested.

Laravel authentication tests

v2.0 2020-05-25 19:28 UTC

This package is auto-updated.

Last update: 2024-01-26 03:32:45 UTC


README

Laravel has a great command for starting your application of php artisan make:auth.

But this doesn't provide you with any tests for a very important area of your application. Therefore you find yourself writing the same auth tests on each new application you create.

This is where you can use this package to speed up that process.

Installation

composer require paulund/auth-tests --dev

Publish the tests

php artisan vendor:publish

Ensure you're using a sqlite database for testing by using

<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>