From 995cafe63d270b44c93dd027df358251f2b65199 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 16 Apr 2024 16:41:29 +0100 Subject: [PATCH] Change how we configure multi-site --- tests/Localized/GenerateTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Localized/GenerateTest.php b/tests/Localized/GenerateTest.php index 7a2bff9..e586154 100644 --- a/tests/Localized/GenerateTest.php +++ b/tests/Localized/GenerateTest.php @@ -4,6 +4,7 @@ use Illuminate\Filesystem\Filesystem; use Statamic\Facades\Config; +use Statamic\Facades\Site; use Tests\Concerns\RunsGeneratorCommand; use Tests\TestCase; @@ -18,8 +19,9 @@ protected function getEnvironmentSetUp($app) parent::getEnvironmentSetUp($app); $app['config']->set('statamic.editions.pro', true); + $app['config']->set('statamic.system.multisite', true); - $app['config']->set('statamic.sites.sites', [ + Site::setSites([ 'default' => [ 'name' => 'English', 'locale' => 'en_US',