## Unit Tests

The package comes with a bunch of unit tests. In order to run them, you will have to modify a couple of things in your root Laravel files.

First off, you must create a second MySQL database that should only be used for testing. Then add this line to your `phpunit.xml` file:

     <env name="DB_DATABASE" value="testing_db_name"/>

Use the same credentials as the database in your `.env` file.

Next, add the following to `autoload-dev` `psr-4` in your `composer.json` file:

    "Kjjdion\\LaravelAdminPanel\\Tests\\": "vendor/kjjdion/laravel-admin-panel/tests/"

Then run `composer update`.

Now you can run all of the tests for the package by pointing directly to the package folder:

    vendor\bin\phpunit vendor\kjjdion\laravel-admin-panel

If you think the package could use more unit tests, feel free to submit a pull request.