From e5393cc52c9da08b17b4c3c2055839a1d8cc6cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 2 Feb 2019 13:24:17 +0100 Subject: [PATCH] Test the if \Redis is wrong for Travis --- tests/TestCase.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 9918be45..9a526411 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,7 +2,7 @@ namespace Stancl\Tenancy\Tests; -use Illuminate\Support\Facades\Redis as LaravelRedis; // https://travis-ci.com/stancl/tenancy/jobs/174861107#L615 +use Illuminate\Support\Facades\Redis; class TestCase extends \Orchestra\Testbench\TestCase { @@ -15,7 +15,9 @@ class TestCase extends \Orchestra\Testbench\TestCase { parent::setUp(); - LaravelRedis::connection('tenancy')->flushdb(); + $this->assertSame('Redis', \Redis::class); // (travis test) todo remove this line + + Redis::connection('tenancy')->flushdb(); tenant()->create('phpunit.localhost');