diff --git a/lumen-test/tests/acceptance/ResourcesWithLaravelRoutesCept.php b/lumen-test/tests/acceptance/ResourcesWithLaravelRoutesCept.php index 6c19d19..66e8aba 100644 --- a/lumen-test/tests/acceptance/ResourcesWithLaravelRoutesCept.php +++ b/lumen-test/tests/acceptance/ResourcesWithLaravelRoutesCept.php @@ -2,6 +2,7 @@ $I = new AcceptanceTester($scenario); $I->wantTo('Generate RESTful resources from a file with Laravel Routes'); +$I->writeToFile('database/database.sqlite', ''); $I->runShellCommand('php artisan wn:resources tests/_data/ResourcesTest.yml --laravel=true'); // Checking the model @@ -106,6 +107,8 @@ $I->writeToFile('./database/factories/ModelFactory.php', "deleteFile('database/database.sqlite'); + // Checking database seeder // $I->openFile('./database/seeds/TaskCategoriesTableSeeder.php'); // $I->seeInThisFile(' diff --git a/src/Commands/ResourceCommand.php b/src/Commands/ResourceCommand.php index 8d27183..8274ce7 100644 --- a/src/Commands/ResourceCommand.php +++ b/src/Commands/ResourceCommand.php @@ -17,7 +17,7 @@ class ResourceCommand extends BaseCommand { {--path=app : where to store the model file.} {--parsed : tells the command that arguments have been already parsed. To use when calling the command from an other command and passing the parsed arguments and options} {--force= : override the existing files} - {--laravel : Use Laravel style route definitions} + {--laravel= : Use Laravel style route definitions} '; protected $description = 'Generates a model, migration, controller and routes for RESTful resource';