1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 12:34:03 +00:00

Add assertion for formatScheme default

This commit is contained in:
lukinovec 2025-10-28 09:30:49 +01:00
parent b7b5e4de0a
commit 47cbee458a

View file

@ -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