mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 09:04:03 +00:00
Add assertion for formatScheme default
This commit is contained in:
parent
b7b5e4de0a
commit
47cbee458a
1 changed files with 4 additions and 0 deletions
|
|
@ -83,6 +83,10 @@ test('tenancy url generator inherits scheme from original url generator', functi
|
||||||
config(['tenancy.bootstrappers' => [UrlGeneratorBootstrapper::class]]);
|
config(['tenancy.bootstrappers' => [UrlGeneratorBootstrapper::class]]);
|
||||||
|
|
||||||
Route::get('/home', fn () => '')->name('home');
|
Route::get('/home', fn () => '')->name('home');
|
||||||
|
|
||||||
|
// No scheme forced, default is HTTP
|
||||||
|
expect(app('url')->formatScheme())->toBe('http://');
|
||||||
|
|
||||||
$tenant = Tenant::create();
|
$tenant = Tenant::create();
|
||||||
|
|
||||||
// Force the original URL generator to use HTTPS
|
// Force the original URL generator to use HTTPS
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue