mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:54:03 +00:00
Add event prevents, Tenant facade
This commit is contained in:
parent
1a88cad4d6
commit
4aa35322da
9 changed files with 187 additions and 97 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Stancl\Tenancy\Tests;
|
||||
|
||||
use Tenant;
|
||||
use Tenancy;
|
||||
|
||||
class FacadeTest extends TestCase
|
||||
|
|
@ -15,4 +16,14 @@ class FacadeTest extends TestCase
|
|||
$this->assertSame('bar', Tenancy::get('foo'));
|
||||
$this->assertSame('xyz', Tenancy::get('abc'));
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function tenant_manager_can_be_accessed_using_the_Tenant_facade()
|
||||
{
|
||||
tenancy()->put('foo', 'bar');
|
||||
Tenant::put('abc', 'xyz');
|
||||
|
||||
$this->assertSame('bar', Tenant::get('foo'));
|
||||
$this->assertSame('xyz', Tenant::get('abc'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue