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

Test the if \Redis is wrong for Travis

This commit is contained in:
Samuel Štancl 2019-02-02 13:24:17 +01:00
parent 0c8cf2cd46
commit e5393cc52c

View file

@ -2,7 +2,7 @@
namespace Stancl\Tenancy\Tests; 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 class TestCase extends \Orchestra\Testbench\TestCase
{ {
@ -15,7 +15,9 @@ class TestCase extends \Orchestra\Testbench\TestCase
{ {
parent::setUp(); 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'); tenant()->create('phpunit.localhost');