1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 15:14:04 +00:00

Update RedirectTest.php

This commit is contained in:
Abrar Ahmad 2022-11-30 13:45:15 +05:00
parent 068cee83ee
commit 8f9b21dad1

View file

@ -9,8 +9,6 @@ use Stancl\Tenancy\Tests\Etc\Tenant;
test('tenant redirect macro replaces only the hostname', function () { test('tenant redirect macro replaces only the hostname', function () {
// `CrossDomainRedirect` feature already enabled in config // `CrossDomainRedirect` feature already enabled in config
$this->app->register(new TenancyServiceProvider($this->app));
Route::get('/foobar', function () { Route::get('/foobar', function () {
return 'Foo'; return 'Foo';
})->name('home'); })->name('home');
@ -19,7 +17,7 @@ test('tenant redirect macro replaces only the hostname', function () {
return redirect()->route('home')->domain('abcd'); return redirect()->route('home')->domain('abcd');
}); });
$tenant = Tenant::create(['id' => 'foo']); $tenant = Tenant::create();
tenancy()->initialize($tenant); tenancy()->initialize($tenant);
pest()->get('/redirect') pest()->get('/redirect')