1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 16:24:04 +00:00

Tenant contract, Tenancy bootstrappers, drop predis

This commit is contained in:
Samuel Štancl 2019-09-06 18:51:34 +02:00
parent 98cb49b1c0
commit f04ca349bd
13 changed files with 158 additions and 47 deletions

View file

@ -6,7 +6,6 @@ namespace Stancl\Tenancy\Tests;
use Illuminate\Support\Facades\Redis;
use Illuminate\Support\Facades\Config;
use Stancl\Tenancy\Exceptions\PhpRedisNotInstalledException;
class BootstrapsTenancyTest extends TestCase
{
@ -38,28 +37,6 @@ class BootstrapsTenancyTest extends TestCase
}
}
/** @test */
public function predis_is_supported()
{
Config::set('database.redis.client', 'predis');
Redis::setDriver('predis');
Config::set('tenancy.redis.tenancy', false);
// assert no exception is thrown from initializing tenancy
$this->assertNotNull($this->initTenancy());
}
/** @test */
public function predis_is_not_supported_without_disabling_redis_multitenancy()
{
Config::set('database.redis.client', 'predis');
Redis::setDriver('predis');
Config::set('tenancy.redis.tenancy', true);
$this->expectException(PhpRedisNotInstalledException::class);
$this->initTenancy();
}
/** @test */
public function filesystem_is_suffixed()
{