From ba8e9b0261b03904fb5ce22c3f1aa35797e2ef58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 4 Mar 2020 21:13:51 +0100 Subject: [PATCH] verify both laravel versions are used --- tests/TenantManagerTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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());