From 8f9b21dad1487023681bf08aeddc73fb18439b21 Mon Sep 17 00:00:00 2001 From: Abrar Ahmad Date: Wed, 30 Nov 2022 13:45:15 +0500 Subject: [PATCH] Update RedirectTest.php --- tests/Features/RedirectTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Features/RedirectTest.php b/tests/Features/RedirectTest.php index 3c90321c..ddc79979 100644 --- a/tests/Features/RedirectTest.php +++ b/tests/Features/RedirectTest.php @@ -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')