mirror of
https://github.com/ZorgCC/lumen-generators.git
synced 2024-12-26 14:05:29 +03:00
Added database for testing
This commit is contained in:
parent
6e00a91eea
commit
8b6e2db315
@ -2,6 +2,8 @@
|
|||||||
$I = new AcceptanceTester($scenario);
|
$I = new AcceptanceTester($scenario);
|
||||||
|
|
||||||
$I->wantTo('Generate RESTful resources from a file');
|
$I->wantTo('Generate RESTful resources from a file');
|
||||||
|
$I->writeToFile('database/database.sqlite', '');
|
||||||
|
|
||||||
$I->runShellCommand('php artisan wn:resources tests/_data/ResourcesTest.yml');
|
$I->runShellCommand('php artisan wn:resources tests/_data/ResourcesTest.yml');
|
||||||
|
|
||||||
// Checking the model
|
// Checking the model
|
||||||
@ -116,6 +118,9 @@ $I->writeToFile('./database/factories/ModelFactory.php', "<?php
|
|||||||
});
|
});
|
||||||
");
|
");
|
||||||
|
|
||||||
|
$I->deleteFile('database/database.sqlite');
|
||||||
|
|
||||||
|
|
||||||
// Checking database seeder
|
// Checking database seeder
|
||||||
// $I->openFile('./database/seeds/TaskCategoriesTableSeeder.php');
|
// $I->openFile('./database/seeds/TaskCategoriesTableSeeder.php');
|
||||||
// $I->seeInThisFile('
|
// $I->seeInThisFile('
|
||||||
|
Loading…
Reference in New Issue
Block a user