1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:54:03 +00:00

Minor tweaks

This commit is contained in:
Samuel Štancl 2019-02-07 17:53:21 +01:00
parent 576ec1cf02
commit 7f0b2e1cd1
6 changed files with 12 additions and 15 deletions

View file

@ -30,7 +30,9 @@ class TestCase extends \Orchestra\Testbench\TestCase
*/
protected function getEnvironmentSetUp($app)
{
(new \Dotenv\Dotenv(__DIR__ . '/..'))->load();
if (file_exists(__DIR__ . '/../.env')) {
(new \Dotenv\Dotenv(__DIR__ . '/..'))->load();
}
$app['config']->set([
'database.redis.client' => 'phpredis',
@ -47,6 +49,7 @@ class TestCase extends \Orchestra\Testbench\TestCase
'prefix' => 'tenant',
'suffix' => '.sqlite',
],
'database.connections.sqlite.database' => ':memory:',
]);
}