From cdc6e31a52001d5347344ee3fcfce4f7dbb1902a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 27 Jan 2024 23:51:05 +0100 Subject: [PATCH] Set default cache driver to redis in tests --- .gitignore | 1 + tests/TestCase.php | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index c7cf933c..2a3062b7 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ vendor/ .idea psysh .phpunit.result.cache +.phpunit.cache phpunit_var_*.xml coverage/ clover.xml diff --git a/tests/TestCase.php b/tests/TestCase.php index 524e42b6..6ac62f95 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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',