PHP code example of modulero / cruddy-tests

1. Go to this page and download the library: Download modulero/cruddy-tests library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

modulero / cruddy-tests example snippets




return [
    
    /*
    |--------------------------------------------------------------------------
    | Default Resource Abilities
    |--------------------------------------------------------------------------
    |
    | This array of abilities will be used to determine which cruddy tests need
    | to be created. Feel free to change this into something you want.
    |
    */
   
    'abilities' => [
        'viewAny',
        'view',
        'create',
        'update',
        'delete',
    ],

];
bash
php artisan vendor:publish --provider="Modulero\CruddyTests\CruddyTestsServiceProvider"
bash
php artisan make:cruddy-tests Foo
bash
php artisan make:cruddy-tests Foo --only=create