mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-15 00:04:04 +00:00
Add command tests
This commit is contained in:
parent
33fcb8a936
commit
e1def355f9
13 changed files with 98 additions and 15 deletions
|
|
@ -7,7 +7,6 @@ use Stancl\Tenancy\DatabaseManager;
|
|||
use Illuminate\Database\Migrations\Migrator;
|
||||
use Stancl\Tenancy\Traits\HasATenantsOption;
|
||||
use Stancl\Tenancy\Traits\DealsWithMigrations;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Illuminate\Database\Console\Migrations\MigrateCommand;
|
||||
|
||||
class Migrate extends MigrateCommand
|
||||
|
|
@ -57,5 +56,7 @@ class Migrate extends MigrateCommand
|
|||
// Migrate
|
||||
parent::handle();
|
||||
});
|
||||
|
||||
$this->database->disconnect();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ use Stancl\Tenancy\DatabaseManager;
|
|||
use Illuminate\Database\Migrations\Migrator;
|
||||
use Stancl\Tenancy\Traits\HasATenantsOption;
|
||||
use Stancl\Tenancy\Traits\DealsWithMigrations;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Illuminate\Database\Console\Migrations\RollbackCommand;
|
||||
|
||||
class Rollback extends RollbackCommand
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ use Illuminate\Console\Command;
|
|||
use Stancl\Tenancy\DatabaseManager;
|
||||
use Stancl\Tenancy\Traits\HasATenantsOption;
|
||||
use Illuminate\Database\Migrations\Migrator;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Illuminate\Database\Console\Seeds\SeedCommand;
|
||||
use Illuminate\Database\ConnectionResolverInterface;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue