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

Get Redis tests to pass

This commit is contained in:
Samuel Štancl 2019-09-19 18:38:40 +02:00
parent 6b0ec1b554
commit fb58f21f1c
3 changed files with 51 additions and 30 deletions

View file

@ -187,4 +187,11 @@ class TenantManagerTest extends TestCase
$this->expectException(\Stancl\Tenancy\Exceptions\TenantStorageException::class);
$tenant2->put('id', 'foo');
}
/** @test */
public function all_returns_a_collection_of_tenant_objects()
{
Tenant::create('foo.localhost');
$this->assertSame('Tenant', class_basename(tenancy()->all()[0]));
}
}