From 8b6e2db315bf9ff7720c16f37f54fc41b189cc8c Mon Sep 17 00:00:00 2001 From: Josiah Dahl Date: Mon, 7 Aug 2017 12:28:22 -0700 Subject: [PATCH] Added database for testing --- lumen-test/tests/acceptance/ResourcesCommandCept.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lumen-test/tests/acceptance/ResourcesCommandCept.php b/lumen-test/tests/acceptance/ResourcesCommandCept.php index 11e08b7..467ee7b 100644 --- a/lumen-test/tests/acceptance/ResourcesCommandCept.php +++ b/lumen-test/tests/acceptance/ResourcesCommandCept.php @@ -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', "deleteFile('database/database.sqlite'); + + // Checking database seeder // $I->openFile('./database/seeds/TaskCategoriesTableSeeder.php'); // $I->seeInThisFile('