mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:54:04 +00:00
Fix #29 add Tenancy facade
This commit is contained in:
parent
88d4e67516
commit
987c54f04e
4 changed files with 36 additions and 2 deletions
18
tests/FacadeTest.php
Normal file
18
tests/FacadeTest.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Tests;
|
||||
|
||||
use Stancl\Tenancy\TenancyFacade as Tenancy;
|
||||
|
||||
class FacadeTest extends TestCase
|
||||
{
|
||||
/** @test */
|
||||
public function tenant_manager_can_be_accessed_using_the_Tenancy_facade()
|
||||
{
|
||||
tenancy()->put('foo', 'bar');
|
||||
Tenancy::put('abc', 'xyz');
|
||||
|
||||
$this->assertSame('bar', Tenancy::get('foo'));
|
||||
$this->assertSame('xyz', Tenancy::get('abc'));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue