From 13048002ef687c3c85207df1fbf8b09ce89fb430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sun, 4 Aug 2019 20:42:50 +0200 Subject: [PATCH] remove loadDotEnv() --- tests/TestCase.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 815e5d3d..7cc55500 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -56,7 +56,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase protected function getEnvironmentSetUp($app) { if (file_exists(__DIR__ . '/../.env')) { - $this->loadDotEnv(); + \Dotenv\Dotenv::create(__DIR__ . '/..')->load(); } $app['config']->set([ @@ -106,15 +106,6 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase } } - protected function loadDotEnv() - { - if (app()::VERSION > '5.8.0') { - \Dotenv\Dotenv::create(__DIR__ . '/..')->load(); - } else { - (new \Dotenv\Dotenv(__DIR__ . '/..'))->load(); - } - } - protected function getPackageProviders($app) { return [\Stancl\Tenancy\TenancyServiceProvider::class];