From 98365debdec190b24f6e192227dd5fc3e9a87456 Mon Sep 17 00:00:00 2001 From: SuperDJ <6484766+SuperDJ@users.noreply.github.com> Date: Mon, 14 Oct 2024 09:54:19 +0200 Subject: [PATCH] Update testing.blade.md How to force (sub)domain identification while testing --- source/docs/v3/testing.blade.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/docs/v3/testing.blade.md b/source/docs/v3/testing.blade.md index 45f617e..bb99a90 100644 --- a/source/docs/v3/testing.blade.md +++ b/source/docs/v3/testing.blade.md @@ -57,6 +57,9 @@ class TestCase // extends ... $tenant = Tenant::create(); tenancy()->initialize($tenant); + + // Depending on the tenant identification middleware you may want to force the URL. For example: + URL::forceRootUrl( 'https://'.$this->tenant->domains[ 0 ]->domain.'.'.centralDomains()[ 0 ] ); } // ...