We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac2e0ba commit 6a47409Copy full SHA for 6a47409
packages/framework/tests/Unit/Views/NavigationLinkViewTest.php
@@ -4,6 +4,8 @@
4
5
namespace Hyde\Framework\Testing\Unit\Views;
6
7
+use Hyde\Pages\InMemoryPage;
8
+use Hyde\Support\Models\Route;
9
use Hyde\Testing\TestsBladeViews;
10
use Hyde\Testing\Support\TestView;
11
use Hyde\Foundation\Facades\Routes;
@@ -41,6 +43,11 @@ protected function testView(?NavItem $item = null): TestView
41
43
]));
42
44
}
45
46
+ protected function makeNavItemForPage(): NavItem
47
+ {
48
+ return NavItem::forRoute(new Route(new InMemoryPage('foo')), 'Foo');
49
+ }
50
+
51
public function testComponentLinksToRouteDestination()
52
{
53
$this->testView()->assertAttributeIs('href', 'foo.html');
0 commit comments