mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:34:03 +00:00
29 lines
685 B
PHP
29 lines
685 B
PHP
<?php
|
|
|
|
namespace Stancl\Tenancy\Tests;
|
|
|
|
use Tenant;
|
|
use 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'));
|
|
}
|
|
|
|
/** @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'));
|
|
}
|
|
}
|