File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/framework/tests/Unit Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55namespace Hyde \Framework \Testing \Unit ;
66
77use Hyde \Foundation \Facades \Routes ;
8- use Hyde \Support \Models \ExternalRoute ;
98use Hyde \Framework \Features \Navigation \NavigationItem ;
109use Hyde \Pages \InMemoryPage ;
1110use Hyde \Pages \MarkdownPage ;
@@ -131,7 +130,8 @@ public function testCreateWithLink()
131130 {
132131 $ item = NavigationItem::create ('foo ' , 'bar ' );
133132
134- $ this ->assertEquals (new ExternalRoute ('foo ' ), $ item ->getRoute ());
133+ $ this ->assertNull ($ item ->getRoute ());
134+ $ this ->assertSame ('foo ' , $ item ->getUrl ());
135135 $ this ->assertSame ('bar ' , $ item ->getLabel ());
136136 $ this ->assertSame (500 , $ item ->getPriority ());
137137 }
@@ -171,7 +171,7 @@ public function testCreateWithRouteKey()
171171
172172 public function testCreateWithMissingRouteKey ()
173173 {
174- $ this ->assertInstanceOf (ExternalRoute::class, NavigationItem::create ('foo ' , 'foo ' )->getRoute ());
174+ $ this ->assertNull ( NavigationItem::create ('foo ' , 'foo ' )->getRoute ());
175175 }
176176
177177 public function testCreateWithCustomPriority ()
You can’t perform that action at this time.
0 commit comments