Skip to content

Commit

Permalink
Use the automatic mocking feature
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Sep 8, 2024
1 parent d3e182a commit 021556c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/framework/tests/Unit/DropdownNavItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
use Hyde\Framework\Features\Navigation\DropdownNavItem;
use Hyde\Framework\Features\Navigation\NavItem;
use Hyde\Pages\MarkdownPage;
use Hyde\Support\Facades\Render;
use Hyde\Support\Models\RenderData;
use Hyde\Support\Models\Route;
use Hyde\Testing\UnitTestCase;

Expand All @@ -20,17 +18,7 @@ class DropdownNavItemTest extends UnitTestCase
{
protected static bool $needsKernel = true;
protected static bool $needsConfig = true;

public static function setUpBeforeClass(): void
{
parent::setUpBeforeClass();
Render::swap(new RenderData());
}

public static function tearDownAfterClass(): void
{
Render::swap(new RenderData());
}
protected static bool $needsRender = true;

public function testConstruct()
{
Expand Down

0 comments on commit 021556c

Please sign in to comment.