Skip to content

Commit cab21b7

Browse files
committed
Reimplement tests for changed types
1 parent 72fce42 commit cab21b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/framework/tests/Unit/NavigationItemTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Hyde\Framework\Testing\Unit;
66

77
use Hyde\Foundation\Facades\Routes;
8-
use Hyde\Support\Models\ExternalRoute;
98
use Hyde\Framework\Features\Navigation\NavigationItem;
109
use Hyde\Pages\InMemoryPage;
1110
use 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()

0 commit comments

Comments
 (0)