From b3863d54eb6d9e3db35be150222d6fda7b0d7413 Mon Sep 17 00:00:00 2001 From: roble Date: Sun, 7 Jun 2026 15:14:14 +0100 Subject: [PATCH] fix: bind FrontendConfig to return 'vue' framework in ThemesConfigTest setup --- tests/Feature/ThemesConfigTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/Feature/ThemesConfigTest.php b/tests/Feature/ThemesConfigTest.php index d550cb6..98ba2b8 100644 --- a/tests/Feature/ThemesConfigTest.php +++ b/tests/Feature/ThemesConfigTest.php @@ -2,6 +2,7 @@ namespace Modules\Themes\Tests\Feature; +use App\Services\FrontendConfig; use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; @@ -15,6 +16,10 @@ protected function setUp(): void { parent::setUp(); $this->storageDir = storage_path('app/themes'); + + app()->bind(FrontendConfig::class, fn () => new class extends FrontendConfig { + public function getFramework(): ?string { return 'vue'; } + }); } protected function tearDown(): void