Skip to content

Commit

Permalink
Test item method with URL
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 10, 2024
1 parent 7733c69 commit 4c99f02
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/framework/tests/Unit/Facades/NavigationFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,15 @@ public function testItemWithOnlyDestination()
'priority' => null,
], $item);
}

public function testItemWithUrl()
{
$item = Navigation::item('https://example.com', 'External', 200);

$this->assertSame([
'destination' => 'https://example.com',
'label' => 'External',
'priority' => 200,
], $item);
}
}

0 comments on commit 4c99f02

Please sign in to comment.