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

Set default cache driver to redis in tests

This commit is contained in:
Samuel Štancl 2024-01-27 23:51:05 +01:00
parent b98db79dde
commit cdc6e31a52
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View file

@ -5,6 +5,7 @@ vendor/
.idea
psysh
.phpunit.result.cache
.phpunit.cache
phpunit_var_*.xml
coverage/
clover.xml

View file

@ -57,6 +57,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
$app['config']->set([
'database.default' => 'central',
'cache.default' => 'redis',
'database.redis.cache.host' => env('TENANCY_TEST_REDIS_HOST', '127.0.0.1'),
'database.redis.default.host' => env('TENANCY_TEST_REDIS_HOST', '127.0.0.1'),
'database.redis.options.prefix' => 'foo',