From e1123ddd78f61e8535d7e26d9bff1b287f8119e1 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Mon, 9 Sep 2024 14:38:43 +0200 Subject: [PATCH] Refactor unit test to use the unit test case --- .../Facades/HydeFacadesAreAliasedInAppConfigTest.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/framework/tests/Unit/Facades/HydeFacadesAreAliasedInAppConfigTest.php b/packages/framework/tests/Unit/Facades/HydeFacadesAreAliasedInAppConfigTest.php index 132e7bda662..07efeb0a5c3 100644 --- a/packages/framework/tests/Unit/Facades/HydeFacadesAreAliasedInAppConfigTest.php +++ b/packages/framework/tests/Unit/Facades/HydeFacadesAreAliasedInAppConfigTest.php @@ -5,10 +5,17 @@ namespace Hyde\Framework\Testing\Unit\Facades; use Hyde\Hyde; -use Hyde\Testing\TestCase; +use Hyde\Testing\UnitTestCase; -class HydeFacadesAreAliasedInAppConfigTest extends TestCase +class HydeFacadesAreAliasedInAppConfigTest extends UnitTestCase { + protected static bool $needsKernel = true; + + protected function setUp(): void + { + self::mockConfig(['app' => require Hyde::path('app/config.php')]); + } + public function testAllFacadesAreAliasedInAppConfig() { $this->assertArrayHasKey('Hyde', config('app.aliases'));