mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:44:02 +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
|
|
@ -186,4 +186,12 @@ class TenantManagerTest extends TestCase
|
|||
$tenant = tenant()->create('foo.localhost');
|
||||
$this->assertSame([$tenant], tenancy()->all()->toArray());
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function all_returns_a_list_of_all_tenants()
|
||||
{
|
||||
$tenant1 = tenant()->create('foo.localhost');
|
||||
$tenant2 = tenant()->create('bar.localhost');
|
||||
$this->assertEqualsCanonicalizing([$tenant1, $tenant2], tenant()->all()->toArray());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue