applied jobs to tests

This commit is contained in:
denisdulici
2019-11-17 15:06:00 +03:00
parent 272905decc
commit 58048a1979
25 changed files with 194 additions and 186 deletions

View File

@ -26,7 +26,7 @@ abstract class FeatureTestCase extends TestCase
$this->faker = Factory::create();
$this->user = User::first();
$this->company = $this->user->first()->companies()->first();
$this->company = $this->user->companies()->first();
// Set Company settings
setting()->forgetAll();
@ -48,7 +48,7 @@ abstract class FeatureTestCase extends TestCase
}
if (!$company) {
$company = $user->companies()->first();
$company = $this->company;
}
$this->startSession();