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

Fix invoke test

This commit is contained in:
Samuel Štancl 2019-08-16 18:54:25 +02:00
parent 6944a46d4c
commit 6095696355
2 changed files with 4 additions and 0 deletions

View file

@ -370,6 +370,7 @@ final class TenantManager
*
* @param string $attribute
* @return mixed
* @todo Deprecate this in v2.
*/
public function __invoke($attribute)
{

View file

@ -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'));
}