From e59098098a3824d9b410ae3dd87064ebcef16543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C3=87ak=C4=B1rel?= Date: Tue, 9 Jun 2020 04:27:15 +0300 Subject: [PATCH] Set email protocol as array in runtime and company email for tests --- database/seeds/TestCompany.php | 1 + tests/Feature/FeatureTestCase.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/database/seeds/TestCompany.php b/database/seeds/TestCompany.php index cdf1263f0..eae5c4adb 100644 --- a/database/seeds/TestCompany.php +++ b/database/seeds/TestCompany.php @@ -40,6 +40,7 @@ class TestCompany extends Seeder { $company = $this->dispatch(new CreateCompany([ 'name' => 'My Company', + 'email' => 'test@company.com', 'domain' => 'company.com', 'address' => 'New Street 1254', 'currency' => 'USD', diff --git a/tests/Feature/FeatureTestCase.php b/tests/Feature/FeatureTestCase.php index a5d94d55f..7d922baa3 100644 --- a/tests/Feature/FeatureTestCase.php +++ b/tests/Feature/FeatureTestCase.php @@ -32,6 +32,10 @@ abstract class FeatureTestCase extends TestCase setting()->forgetAll(); setting()->load(true); + setting()->set(['email.protocol' => 'array']); + setting()->save(); + + // Disable debugbar config(['debugbar.enabled', false]); }