From 24ce8f94547e7c26f83861b042213d4a0f2bca1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 4 Oct 2019 22:10:02 +0200 Subject: [PATCH] Disable all features by default --- assets/config.php | 5 +++-- tests/TenantRedirectMacroTest.php | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/config.php b/assets/config.php index 1cc9c845..bc954c89 100644 --- a/assets/config.php +++ b/assets/config.php @@ -81,8 +81,9 @@ return [ // Features are classes that provide additional functionality // not needed for tenancy to be bootstrapped. They are run // regardless of whether tenancy has been initialized. - Stancl\Tenancy\Features\TelescopeTags::class, - Stancl\Tenancy\Features\TenantRedirect::class, + + // Stancl\Tenancy\Features\TelescopeTags::class, + // Stancl\Tenancy\Features\TenantRedirect::class, // Stancl\Tenancy\Features\TenantConfig::class, ], 'storage_to_config_map' => [ // Used by the TenantConfig feature diff --git a/tests/TenantRedirectMacroTest.php b/tests/TenantRedirectMacroTest.php index 7f35abee..970579ec 100644 --- a/tests/TenantRedirectMacroTest.php +++ b/tests/TenantRedirectMacroTest.php @@ -15,6 +15,10 @@ class TenantRedirectMacroTest extends TestCase /** @test */ public function tenant_redirect_macro_replaces_only_the_hostname() { + config([ + 'tenancy.features' => ['Stancl\Tenancy\Features\TenantRedirect'], + ]); + Route::get('/foobar', function () { return 'Foo'; })->name('home');