diff --git a/packages/framework/tests/Feature/HydeExtensionFeatureTest.php b/packages/framework/tests/Feature/HydeExtensionFeatureTest.php index a3256e9d4ab..e2cea4ca70c 100644 --- a/packages/framework/tests/Feature/HydeExtensionFeatureTest.php +++ b/packages/framework/tests/Feature/HydeExtensionFeatureTest.php @@ -49,7 +49,11 @@ public function testBaseClassDiscoveryHandlers() public function testCanRegisterNewExtension() { + HydeKernel::setInstance(new HydeKernel()); + + $this->kernel = HydeKernel::getInstance(); $this->kernel->registerExtension(HydeTestExtension::class); + $this->assertSame([HydeTestExtension::class], $this->kernel->getRegisteredExtensions()); }