mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 00:34:05 +00:00
Revert travis changes & add a version check to predis tests
This commit is contained in:
parent
f15d84954a
commit
e8b9d6f24b
2 changed files with 10 additions and 3 deletions
|
|
@ -35,6 +35,10 @@ class BootstrapsTenancyTest extends TestCase
|
|||
/** @test */
|
||||
public function predis_is_supported()
|
||||
{
|
||||
if (app()->version() < 'v5.8.27') {
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
||||
Config::set('database.redis.client', 'predis');
|
||||
Redis::setDriver('predis');
|
||||
Config::set('tenancy.redis.tenancy', false);
|
||||
|
|
@ -46,6 +50,10 @@ class BootstrapsTenancyTest extends TestCase
|
|||
/** @test */
|
||||
public function predis_is_not_supported_without_disabling_redis_multitenancy()
|
||||
{
|
||||
if (app()->version() < 'v5.8.27') {
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
||||
Config::set('database.redis.client', 'predis');
|
||||
Redis::setDriver('predis');
|
||||
Config::set('tenancy.redis.tenancy', true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue