changed tests for ci

This commit is contained in:
denisdulici 2018-10-01 10:36:01 +03:00
parent e0175c2928
commit 0393027571

View File

@ -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]);
}
}