fixed tests
This commit is contained in:
parent
6afd559dcb
commit
b0adc4bdf9
@ -55,6 +55,14 @@ class TestCompany extends Seeder
|
||||
|
||||
session(['company_id' => $company->id]);
|
||||
|
||||
// Set Company settings
|
||||
setting()->setExtraColumns(['company_id' => $company->id]);
|
||||
setting()->forgetAll();
|
||||
setting()->load(true);
|
||||
|
||||
setting()->set(['email.protocol' => 'array']);
|
||||
setting()->save();
|
||||
|
||||
$this->command->info('Test company created.');
|
||||
}
|
||||
|
||||
|
@ -26,16 +26,6 @@ abstract class FeatureTestCase extends TestCase
|
||||
$this->user = User::first();
|
||||
$this->company = $this->user->companies()->first();
|
||||
|
||||
session(['company_id' => $this->company->id]);
|
||||
|
||||
// Set Company settings
|
||||
setting()->setExtraColumns(['company_id' => $this->company->id]);
|
||||
setting()->forgetAll();
|
||||
setting()->load(true);
|
||||
|
||||
setting()->set(['email.protocol' => 'array']);
|
||||
setting()->save();
|
||||
|
||||
// Disable debugbar
|
||||
config(['debugbar.enabled', false]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user