Skip to content

Commit

Permalink
Reset kernel before test
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 11, 2023
1 parent 97e8449 commit d7a4dd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/framework/tests/Feature/HydeExtensionFeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit d7a4dd8

Please sign in to comment.