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