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