Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.16 KB

README.md

File metadata and controls

29 lines (24 loc) · 1.16 KB

Laravel JWT Tests Package for tymon/jwt-auth

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