2016-12-29 18:35:34 +03:00
|
|
|
<?php
|
2016-02-20 01:31:29 +03:00
|
|
|
$I = new AcceptanceTester($scenario);
|
|
|
|
|
2017-01-12 12:31:31 +03:00
|
|
|
// $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;
|
2016-02-20 01:31:29 +03:00
|
|
|
|
2017-01-12 12:31:31 +03:00
|
|
|
// class TasksTableSeeder extends Seeder
|
|
|
|
// {
|
|
|
|
// public function run()
|
|
|
|
// {
|
|
|
|
// factory(App\Task::class, 10)->create();
|
|
|
|
// }
|
|
|
|
// }');
|
|
|
|
// $I->deleteFile('./database/seeds/TasksTableSeeder.php');
|
2016-02-20 01:31:29 +03:00
|
|
|
|
2017-01-12 12:31:31 +03:00
|
|
|
// $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;
|
2016-02-20 01:31:29 +03:00
|
|
|
|
2017-01-12 12:31:31 +03:00
|
|
|
// class CategoriesTableSeeder extends Seeder
|
|
|
|
// {
|
|
|
|
// public function run()
|
|
|
|
// {
|
|
|
|
// factory(App\Category::class, 25)->create();
|
|
|
|
// }
|
|
|
|
// }');
|
|
|
|
// $I->deleteFile('./database/seeds/CategoriesTableSeeder.php');
|