diff --git a/tests/TenantManagerTest.php b/tests/TenantManagerTest.php index 8e78a607..c7af0133 100644 --- a/tests/TenantManagerTest.php +++ b/tests/TenantManagerTest.php @@ -25,6 +25,10 @@ class TenantManagerTest extends TestCase /** @test */ public function current_tenant_can_be_retrieved_using_getTenant() { + if (app()->version()[0] === '6') { + $this->fail('laravel 6 is used'); + } + $tenant = Tenant::new()->withDomains(['test2.localhost'])->save(); tenancy()->init('test2.localhost'); @@ -35,6 +39,10 @@ class TenantManagerTest extends TestCase /** @test */ public function initById_works() { + if (app()->version()[0] === '6') { + $this->fail('laravel 7 is used'); + } + $tenant = Tenant::new()->withDomains(['foo.localhost'])->save(); $this->assertNotEquals($tenant, tenancy()->getTenant());