From 47cbee458ae9fb0a405d877f0f84f29613426c94 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 28 Oct 2025 09:30:49 +0100 Subject: [PATCH] Add assertion for formatScheme default --- tests/Bootstrappers/UrlGeneratorBootstrapperTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/Bootstrappers/UrlGeneratorBootstrapperTest.php b/tests/Bootstrappers/UrlGeneratorBootstrapperTest.php index e01f63b0..647422da 100644 --- a/tests/Bootstrappers/UrlGeneratorBootstrapperTest.php +++ b/tests/Bootstrappers/UrlGeneratorBootstrapperTest.php @@ -83,6 +83,10 @@ test('tenancy url generator inherits scheme from original url generator', functi config(['tenancy.bootstrappers' => [UrlGeneratorBootstrapper::class]]); Route::get('/home', fn () => '')->name('home'); + + // No scheme forced, default is HTTP + expect(app('url')->formatScheme())->toBe('http://'); + $tenant = Tenant::create(); // Force the original URL generator to use HTTPS