mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 17:14:03 +00:00
Add note about phpredis
This commit is contained in:
parent
03ee52e62a
commit
998f065338
5 changed files with 8 additions and 5 deletions
|
|
@ -37,7 +37,7 @@ class BootstrapsTenancyTest extends TestCase
|
|||
{
|
||||
Config::set('database.redis.client', 'predis');
|
||||
Redis::setDriver('predis');
|
||||
Config::set('tenancy.redis.multitenant', false);
|
||||
Config::set('tenancy.redis.tenancy', false);
|
||||
|
||||
// assert no exception is thrown from initializing tenancy
|
||||
$this->assertNotNull($this->initTenancy());
|
||||
|
|
@ -48,6 +48,7 @@ class BootstrapsTenancyTest extends TestCase
|
|||
{
|
||||
Config::set('database.redis.client', 'predis');
|
||||
Redis::setDriver('predis');
|
||||
Config::set('tenancy.redis.tenancy', true);
|
||||
|
||||
$this->expectException(PhpRedisNotInstalledException::class);
|
||||
$this->initTenancy();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue