mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 12:54:05 +00:00
Add more tests
This commit is contained in:
parent
18ce4577bf
commit
fceddb8c4d
5 changed files with 87 additions and 3 deletions
|
|
@ -6,6 +6,8 @@ use Illuminate\Support\Facades\Redis;
|
|||
|
||||
class TestCase extends \Orchestra\Testbench\TestCase
|
||||
{
|
||||
public $initTenancy = true;
|
||||
|
||||
/**
|
||||
* Setup the test environment
|
||||
*
|
||||
|
|
@ -14,12 +16,14 @@ class TestCase extends \Orchestra\Testbench\TestCase
|
|||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
||||
Redis::connection('tenancy')->flushdb();
|
||||
|
||||
tenant()->create('localhost');
|
||||
|
||||
tenancy()->init('localhost');
|
||||
if ($this->initTenancy) {
|
||||
tenancy()->init('localhost');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue