mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-30 15:45:30 +03:00
a9c12e9fa0
- Bug fixed: [Undefined index: factory](https://github.com/webNeat/lumen-generators/issues/14) - Feature added: [Check if file already exists before generating it](https://github.com/webNeat/lumen-generators/issues/11) - Feature added: [Support for additional columns like nullableTimestamps() and softDeletes() in migrations](https://github.com/webNeat/lumen-generators/issues/12) - Feature added: [Specifying namespace for `wn:resource` and `wn:resources`](https://github.com/webNeat/lumen-generators/issues/18)
35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
$I = new AcceptanceTester($scenario);
|
|
|
|
// $I->wantTo('generate a seeder with default options');
|
|
// $I->runShellCommand('php artisan wn:seeder "App\Task"');
|
|
// $I->seeInShellOutput('TasksTableSeeder generated');
|
|
// $I->openFile('./database/seeds/TasksTableSeeder.php');
|
|
// $I->seeInThisFile('
|
|
// use Illuminate\Database\Seeder;
|
|
|
|
// class TasksTableSeeder extends Seeder
|
|
// {
|
|
// public function run()
|
|
// {
|
|
// factory(App\Task::class, 10)->create();
|
|
// }
|
|
// }');
|
|
// $I->deleteFile('./database/seeds/TasksTableSeeder.php');
|
|
|
|
// $I->wantTo('generate a seeder with custom options');
|
|
// $I->runShellCommand('php artisan wn:seeder "App\Category" --count=25');
|
|
// $I->seeInShellOutput('CategoriesTableSeeder generated');
|
|
// $I->openFile('./database/seeds/CategoriesTableSeeder.php');
|
|
// $I->seeInThisFile('
|
|
// use Illuminate\Database\Seeder;
|
|
|
|
// class CategoriesTableSeeder extends Seeder
|
|
// {
|
|
// public function run()
|
|
// {
|
|
// factory(App\Category::class, 25)->create();
|
|
// }
|
|
// }');
|
|
// $I->deleteFile('./database/seeds/CategoriesTableSeeder.php');
|