1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 18:44:03 +00:00

remove loadDotEnv()

This commit is contained in:
Samuel Štancl 2019-08-04 20:42:50 +02:00
parent cb3bb112a3
commit 13048002ef

View file

@ -56,7 +56,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
protected function getEnvironmentSetUp($app) protected function getEnvironmentSetUp($app)
{ {
if (file_exists(__DIR__ . '/../.env')) { if (file_exists(__DIR__ . '/../.env')) {
$this->loadDotEnv(); \Dotenv\Dotenv::create(__DIR__ . '/..')->load();
} }
$app['config']->set([ $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) protected function getPackageProviders($app)
{ {
return [\Stancl\Tenancy\TenancyServiceProvider::class]; return [\Stancl\Tenancy\TenancyServiceProvider::class];