From 609569635525782fb642ba533f195fbf5438f3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 16 Aug 2019 18:54:25 +0200 Subject: [PATCH] Fix invoke test --- src/TenantManager.php | 1 + tests/TenantManagerTest.php | 3 +++ 2 files changed, 4 insertions(+) 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')); }