mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 18:04:03 +00:00
Fix Redis scan for predis, make phpunit use multiple configs (e.g. different Redis drivers)
This commit is contained in:
parent
fe6ce82045
commit
0dc8c80a02
6 changed files with 37 additions and 13 deletions
|
|
@ -24,6 +24,10 @@ class BootstrapsTenancyTest extends TestCase
|
|||
/** @test */
|
||||
public function redis_is_prefixed()
|
||||
{
|
||||
if (! config('tenancy.redis.tenancy')) {
|
||||
$this->markTestSkipped('Redis tenancy disabled.');
|
||||
}
|
||||
|
||||
$this->initTenancy();
|
||||
foreach (config('tenancy.redis.prefixed_connections', ['default']) as $connection) {
|
||||
$prefix = config('tenancy.redis.prefix_base') . tenant('uuid');
|
||||
|
|
@ -35,6 +39,7 @@ class BootstrapsTenancyTest extends TestCase
|
|||
/** @test */
|
||||
public function predis_is_supported()
|
||||
{
|
||||
// No setDriver() before that version.
|
||||
if (app()->version() < 'v5.8.27') {
|
||||
$this->markTestSkipped();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue