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:
parent
6944a46d4c
commit
6095696355
2 changed files with 4 additions and 0 deletions
|
|
@ -370,6 +370,7 @@ final class TenantManager
|
|||
*
|
||||
* @param string $attribute
|
||||
* @return mixed
|
||||
* @todo Deprecate this in v2.
|
||||
*/
|
||||
public function __invoke($attribute)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue