exolnet / laravel-test
The eXolnet Laravel Test package.
Installs: 1 353
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.3|^8.0
- ext-json: *
- fakerphp/faker: ^1.6
- laravel/browser-kit-testing: ^5.0|^6.0
- laravel/framework: ^6.0|^7.0|^8.0
- mockery/mockery: ^1.4.3
- phpunit/phpunit: ^9.3.3
Requires (Dev)
- exolnet/phpcs-config: ^2.0
- squizlabs/php_codesniffer: ^3.6
README
Extends Laravel’s TestCase to accelerate the SQLite database creation by using a cached version.
Installation
Require this package with composer:
composer require --dev exolnet/laravel-test
In your application TestCase
, extends the package’s TestCase
instead of Laravel’s version.
use Exolnet\Test\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { // }
Usage
This package will cache a migrated and seeded version of the testing SQLite database in order to restore it faster. This is useful if your migration process is slow.
Testing
To run the PHPUnit tests, please use:
composer test
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details.
Security
If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker.
Credits
License
This code is licensed under the MIT license. Please see the license file for more information.