1
0
Fork 0
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:
Samuel Štancl 2019-02-07 21:44:47 +01:00
parent 18ce4577bf
commit fceddb8c4d
5 changed files with 87 additions and 3 deletions

View file

@ -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');
}
}
/**