mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 16:14:03 +00:00
Update RedirectTest.php
This commit is contained in:
parent
068cee83ee
commit
8f9b21dad1
1 changed files with 1 additions and 3 deletions
|
|
@ -9,8 +9,6 @@ use Stancl\Tenancy\Tests\Etc\Tenant;
|
|||
test('tenant redirect macro replaces only the hostname', function () {
|
||||
// `CrossDomainRedirect` feature already enabled in config
|
||||
|
||||
$this->app->register(new TenancyServiceProvider($this->app));
|
||||
|
||||
Route::get('/foobar', function () {
|
||||
return 'Foo';
|
||||
})->name('home');
|
||||
|
|
@ -19,7 +17,7 @@ test('tenant redirect macro replaces only the hostname', function () {
|
|||
return redirect()->route('home')->domain('abcd');
|
||||
});
|
||||
|
||||
$tenant = Tenant::create(['id' => 'foo']);
|
||||
$tenant = Tenant::create();
|
||||
tenancy()->initialize($tenant);
|
||||
|
||||
pest()->get('/redirect')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue