Applies Changes

This commit is contained in:
Berkay Güre
2018-07-15 15:07:56 +03:00
committed by Berkay Güre
parent c39b9870ef
commit 253f0f1451
14 changed files with 47 additions and 62 deletions

View File

@ -5,6 +5,7 @@ namespace Tests;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
use Illuminate\Support\Facades\Artisan;
abstract class TestCase extends BaseTestCase
{
@ -13,6 +14,7 @@ abstract class TestCase extends BaseTestCase
protected function setUp()
{
parent::setUp();
$this->artisan('db:seed');
Artisan::call('db:seed', ['--class' => '\Database\Seeds\TestCompany', '--force' => true]);
Artisan::call('company:seed',['company' => 1]);
}
}