mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 17:54:03 +00:00
Minor tweaks
This commit is contained in:
parent
576ec1cf02
commit
7f0b2e1cd1
6 changed files with 12 additions and 15 deletions
|
|
@ -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:',
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue