Reviewed all tests for Travis

This commit is contained in:
Batuhan Baş
2019-04-02 18:51:06 +03:00
parent e6560f88a6
commit 9e0cdec575
22 changed files with 39 additions and 45 deletions

View File

@ -27,6 +27,11 @@ abstract class FeatureTestCase extends TestCase
$this->faker = Factory::create();
$this->user = User::first();
$this->company = $this->user->first()->companies()->first();
// Set Company settings
setting()->forgetAll();
setting()->setExtraColumns(['company_id' => $this->company->id]);
setting()->load(true);
}
/**
@ -44,7 +49,7 @@ abstract class FeatureTestCase extends TestCase
if (!$company) {
$company = $user->companies()->first();
}
}
$this->startSession();