diff --git a/packages/framework/tests/Unit/NavigationItemTest.php b/packages/framework/tests/Unit/NavigationItemTest.php index f003b3400b0..6857189254f 100644 --- a/packages/framework/tests/Unit/NavigationItemTest.php +++ b/packages/framework/tests/Unit/NavigationItemTest.php @@ -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');