mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:44:02 +00:00
parent
353f7afb82
commit
66a4fe9630
2 changed files with 19 additions and 1 deletions
|
|
@ -177,4 +177,15 @@ class TenantManagerTest extends TestCase
|
|||
$this->assertSame($originals['storage_root'], Storage::disk('local')->getAdapter()->getPathPrefix());
|
||||
$this->assertSame($originals['cache'], app('cache'));
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function tenant_can_be_deleted()
|
||||
{
|
||||
$tenant = tenant()->create('foo.localhost');
|
||||
tenant()->delete($tenant['uuid']);
|
||||
$this->assertSame([], tenancy()->all()->toArray());
|
||||
|
||||
$tenant = tenant()->create('foo.localhost');
|
||||
$this->assertSame([$tenant], tenancy()->all()->toArray());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue