Download the PHP package modulero/cruddy-tests without Composer
On this page you can find all versions of the php package modulero/cruddy-tests. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cruddy-tests
Create Cruddy Tests in Laravel
This package provides an easy way to create CRUD-based feature tests.
Installation
You can install this package via composer using:
The package will automatically register itself.
To publish the config file to config/cruddy-tests.php run:
This will publish a file named cruddy-tests.php in your config directory with the following contents:
Usage
After you've installed the package and optionally overwritten the values in the config-file, working with this package will be a breeze.
The only thing you need to do is call the artisan command:
This will create a folder in the Tests\Feature namespace with the name Foo. In this folder files will be created based on the resource abilities in your config. With the default config it will create these files:
- ViewAnyFooTest
- ViewFooTest
- CreateFooTest
- UpdateFooTest
- DeleteFooTest
Certain resources might not need all the available abilities. In that case you can use the options --only and --except.
You can add multiple abilities through a comma-separated list. The names need to match the ones in your config file. It is not recommended to use both options at the same time. When you do the --only option takes precedence over --except.
Changelog
Please see CHANGELOG for more information about recent changes.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Richard Hansma
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of cruddy-tests with dependencies
illuminate/console Version 5.5.*|5.6.*|5.7.*|5.8.*
illuminate/support Version 5.5.*|5.6.*|5.7.*|5.8.*
symfony/console Version 3.4.*|4.2.*