Skip to content

Commit

Permalink
Start refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Sep 8, 2024
1 parent 89ff0f1 commit e9ac88f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions packages/framework/tests/Unit/DropdownNavItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,8 @@ class DropdownNavItemTest extends UnitTestCase
public static function setUpBeforeClass(): void
{
parent::setUpBeforeClass();
Render::swap(new RenderData());
}

public static function tearDownAfterClass(): void
{
Render::swap(new RenderData());
self::mockCurrentRouteKey();
}

public function testConstruct()
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/tests/Unit/RenderHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function setUp(): void
{
parent::setUp();

Render::swap(new RenderData());
self::mockCurrentRouteKey();
View::swap(Mockery::mock(Factory::class)->makePartial());
}

Expand Down
2 changes: 1 addition & 1 deletion packages/testing/src/Common/BaseHydePageUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function setUp(): void
app()->bind(\Illuminate\Contracts\View\Factory::class, fn () => $mock);
app()->bind('view', fn () => $mock);

Render::swap(new RenderData());
self::mockCurrentRouteKey();
}

protected function tearDown(): void
Expand Down

0 comments on commit e9ac88f

Please sign in to comment.