File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 77use Hyde \Hyde ;
88use Hyde \Support \Models \Route ;
99use Hyde \Foundation \Facades \Routes ;
10- use Hyde \Support \Models \ExternalRoute ;
1110use Hyde \Framework \Features \Navigation \NavigationGroup ;
1211use Hyde \Framework \Features \Navigation \MainNavigationMenu ;
1312use Hyde \Framework \Features \Navigation \NavigationItem ;
@@ -268,7 +267,7 @@ public function testCanAddItemsToMainNavigationMenuResolvedFromContainer()
268267 Hyde::boot ();
269268
270269 $ navigation = app ('navigation.main ' );
271- $ navigation ->add (new NavigationItem (new ExternalRoute ( '/foo ' ) , 'Foo ' ));
270+ $ navigation ->add (new NavigationItem ('/foo ' , 'Foo ' ));
272271
273272 $ this ->assertCount (2 , $ navigation ->getItems ());
274273 $ this ->assertSame ('Foo ' , $ navigation ->getItems ()->last ()->getLabel ());
Original file line number Diff line number Diff line change 66
77use Hyde \Testing \UnitTestCase ;
88use Illuminate \Support \Collection ;
9- use Hyde \Support \Models \ExternalRoute ;
109use Hyde \Framework \Features \Navigation \NavigationItem ;
1110use Hyde \Framework \Features \Navigation \NavigationGroup ;
1211use Hyde \Framework \Features \Navigation \DocumentationSidebar ;
2120 */
2221class DocumentationSidebarUnitTest extends UnitTestCase
2322{
23+ protected static bool $ needsKernel = true ;
24+ protected static bool $ needsConfig = true ;
25+
2426 // Base menu tests
2527
2628 public function testCanConstruct ()
@@ -228,6 +230,6 @@ protected function getItems(): array
228230
229231 protected function item (string $ destination , string $ label , int $ priority = 500 ): NavigationItem
230232 {
231- return new NavigationItem (new ExternalRoute ( $ destination) , $ label , $ priority );
233+ return new NavigationItem ($ destination , $ label , $ priority );
232234 }
233235}
Original file line number Diff line number Diff line change 66
77use Hyde \Testing \UnitTestCase ;
88use Illuminate \Support \Collection ;
9- use Hyde \Support \Models \ExternalRoute ;
109use Hyde \Framework \Features \Navigation \NavigationItem ;
1110use Hyde \Framework \Features \Navigation \MainNavigationMenu ;
1211
1918 */
2019class NavigationMenuUnitTest extends UnitTestCase
2120{
21+ protected static bool $ needsKernel = true ;
22+ protected static bool $ needsConfig = true ;
23+
2224 // Base menu tests
2325
2426 public function testCanConstruct ()
@@ -159,6 +161,6 @@ protected function getItems(): array
159161
160162 protected function item (string $ destination , string $ label , int $ priority = 500 ): NavigationItem
161163 {
162- return new NavigationItem (new ExternalRoute ( $ destination) , $ label , $ priority );
164+ return new NavigationItem ($ destination , $ label , $ priority );
163165 }
164166}
You can’t perform that action at this time.
0 commit comments