diff --git a/src/TenantManager.php b/src/TenantManager.php index beeb641d..5c10d80c 100644 --- a/src/TenantManager.php +++ b/src/TenantManager.php @@ -370,6 +370,7 @@ final class TenantManager * * @param string $attribute * @return mixed + * @todo Deprecate this in v2. */ public function __invoke($attribute) { diff --git a/tests/TenantManagerTest.php b/tests/TenantManagerTest.php index 453730ea..112e66b5 100644 --- a/tests/TenantManagerTest.php +++ b/tests/TenantManagerTest.php @@ -24,6 +24,9 @@ class TenantManagerTest extends TestCase /** @test */ public function invoke_works() { + tenant()->create('foo.localhost'); + tenancy()->init('foo.localhost'); + $this->assertSame(tenant('uuid'), tenant()('uuid')); }