mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:04:03 +00:00
Apply fixes from StyleCI
This commit is contained in:
parent
fb6b186af5
commit
ecde8901e7
3 changed files with 3 additions and 3 deletions
|
|
@ -133,7 +133,7 @@ class DatabaseManager
|
|||
{
|
||||
$database = $tenant->getDatabaseName();
|
||||
$manager = $this->getTenantDatabaseManager($tenant);
|
||||
|
||||
|
||||
if ($this->app['config']['tenancy.queue_database_creation'] ?? false) {
|
||||
QueuedTenantDatabaseCreator::withChain($afterCreating)->dispatch($manager, $database);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class TenantManager
|
|||
$this->ensureTenantCanBeCreated($tenant);
|
||||
|
||||
$this->storage->createTenant($tenant);
|
||||
|
||||
|
||||
/** @var \Illuminate\Contracts\Queue\ShouldQueue[]|callable[] $afterCreating */
|
||||
$afterCreating = [];
|
||||
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ class TenantManagerTest extends TestCase
|
|||
$tenant = Tenant::new()->save();
|
||||
|
||||
Queue::assertPushedWithChain(QueuedTenantDatabaseCreator::class, [
|
||||
QueuedTenantDatabaseMigrator::class
|
||||
QueuedTenantDatabaseMigrator::class,
|
||||
]);
|
||||
|
||||
// foreach (Queue::pushedJobs() as $job) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue