Skip to content

Commit

Permalink
Test create with null label
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 24, 2024
1 parent 3e4901b commit 09938c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/framework/tests/Unit/NavigationItemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ public function testCreateWithCustomPriority()
$this->assertSame(100, NavigationItem::create(Routes::get('index'), 'foo', 100)->getPriority());
}

public function testCreateWithNullLabel()
{
$this->assertSame('', NavigationItem::create('foo')->getLabel());
}

public function testPassingRouteKeyToStaticConstructorUsesRouteInstance()
{
$route = Routes::get('index');
Expand Down

0 comments on commit 09938c8

Please sign in to comment.