1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:54:03 +00:00

Remove conditional loading logic

Removed logic for conditionally registering the tenant:dump command based on the installed Laravel version
This commit is contained in:
Victor R 2022-02-16 19:35:34 -05:00
parent 838a257fb3
commit 9597aca13a
2 changed files with 1 additions and 13 deletions

View file

@ -8,7 +8,6 @@ use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
use Stancl\JobPipeline\JobPipeline;
use Stancl\Tenancy\Bootstrappers\DatabaseTenancyBootstrapper;
use Stancl\Tenancy\Events\TenancyEnded;
@ -95,10 +94,6 @@ class CommandsTest extends TestCase
/** @test */
public function migrate_command_loads_schema_state()
{
if ((int) Str::before($this->app->version(), '.') < 8) {
$this->markTestSkipped("'Laravel version doesn't support schema dumps.'");
}
$tenant = Tenant::create();
$this->assertFalse(Schema::hasTable('schema_users'));
@ -119,10 +114,6 @@ class CommandsTest extends TestCase
/** @test */
public function dump_command_works()
{
if ((int) Str::before($this->app->version(), '.') < 9) {
$this->markTestSkipped("'Laravel version doesn't support schema dumps.'");
}
$tenant = Tenant::create();
Artisan::call('tenants:migrate');