From 03930275714d5014dd8c9366233a8e46ef809e2f Mon Sep 17 00:00:00 2001 From: denisdulici Date: Mon, 1 Oct 2018 10:36:01 +0300 Subject: [PATCH] changed tests for ci --- tests/TestCase.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 2932d4a69..386b5bb4d 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,9 +2,20 @@ namespace Tests; +use Artisan; +use Illuminate\Foundation\Testing\DatabaseMigrations; +use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { - use CreatesApplication; -} + use CreatesApplication, DatabaseMigrations; + + protected function setUp() + { + parent::setUp(); + + Artisan::call('db:seed', ['--class' => '\Database\Seeds\TestCompany', '--force' => true]); + Artisan::call('company:seed',['company' => 1]); + } +} \ No newline at end of file