jiteshdhamaniya/jwt-tests

Tests for laravel JWT auth tymon/jwt-auth

v1.0.1 2020-09-10 08:00 UTC

This package is auto-updated.

Last update: 2024-05-10 16:40:36 UTC


README

GitHub issues GitHub Forks GitHub Stars

Installation

Before installation please make sure tymon/jwt-auth

composer require tymon/jwt-auth
composer require jiteshdhamaniya/jwt-tests --dev
php artisan make:jwt-tests 

Edit phpunit.xml file by adding these two lines between <php> tags:

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

Alternatively, use different database than sqlite, but also different from the one used for development.

EndPoint

By Default it uses endpoint /api if you do have some other endpoint such as /api/v1 you can change using ```endpoint`` option. like this

php artisan make:jwt-tests --endpoint=api/v1