mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:34:04 +00:00
Fix some tests
This commit is contained in:
parent
93d2a281eb
commit
50a77ee826
10 changed files with 76 additions and 61 deletions
|
|
@ -4,25 +4,14 @@ declare(strict_types=1);
|
|||
|
||||
namespace Stancl\Tenancy\Tests;
|
||||
|
||||
use Tenancy;
|
||||
use Tenant;
|
||||
|
||||
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('foo', 'bar');
|
||||
Tenant::put('abc', 'xyz');
|
||||
|
||||
$this->assertSame('bar', Tenant::get('foo'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue