mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:04:03 +00:00
wip
This commit is contained in:
commit
63f19ff72d
1 changed files with 8 additions and 1 deletions
|
|
@ -23,6 +23,13 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
|
||||||
Redis::connection('tenancy')->flushdb();
|
Redis::connection('tenancy')->flushdb();
|
||||||
Redis::connection('cache')->flushdb();
|
Redis::connection('cache')->flushdb();
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
Artisan::call('migrate:fresh', [
|
||||||
|
'--path' => __DIR__ . '/../src/assets/migrations',
|
||||||
|
]);
|
||||||
|
// dd(Artisan::output());
|
||||||
|
>>>>>>> 7fd274d2ced8467761315d490e5e1bb31bdb0ab7
|
||||||
// $this->loadLaravelMigrations();
|
// $this->loadLaravelMigrations();
|
||||||
$this->loadMigrationsFrom(__DIR__ . '/../src/assets/migrations');
|
$this->loadMigrationsFrom(__DIR__ . '/../src/assets/migrations');
|
||||||
Artisan::call('migrate:fresh');
|
Artisan::call('migrate:fresh');
|
||||||
|
|
@ -97,7 +104,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
|
||||||
'database.redis.client' => 'phpredis',
|
'database.redis.client' => 'phpredis',
|
||||||
'tenancy.storage_driver' => DatabaseStorageDriver::class,
|
'tenancy.storage_driver' => DatabaseStorageDriver::class,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
tenancy()->setStorageDriver(DatabaseStorageDriver::class);
|
tenancy()->setStorageDriver(DatabaseStorageDriver::class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue