Skip to content

Commit

Permalink
Test navigation accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 8, 2024
1 parent 9a3136d commit af133ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/framework/tests/Feature/HydeKernelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Hyde\Testing\TestCase;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\HtmlString;
use Hyde\Framework\Features\Navigation\NavigationMenu;

/**
* This test class runs high-level tests on the HydeKernel class,
Expand Down Expand Up @@ -79,6 +80,13 @@ public function test_has_feature_helper_calls_method_on_features_class()
$this->assertSame(Features::enabled('foo'), Hyde::hasFeature('foo'));
}

public function test_has_navigation_helper_returns_site_navigation_instance()
{
Hyde::boot();

$this->assertInstanceOf(NavigationMenu::class, Hyde::navigation());
}

public function test_current_page_helper_returns_current_page_name()
{
Render::share('routeKey', 'foo');
Expand Down

0 comments on commit af133ba

Please sign in to comment.