Skip to content

Commit

Permalink
Test component resolves relative links for routes
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Mar 14, 2024
1 parent 8581fa9 commit cbae85b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public function testComponentLinksToRouteDestination()
$this->testView()->assertAttributeIs('href', 'foo.html');
}

public function testComponentResolvesRelativeLinksForRoutes()
{
$this->mockCurrentPage('foo/bar');
$this->testView($this->makeNavItemForPage())->assertAttributeIs('href', '../foo.html');
}

public function testComponentUsesTitle()
{
$this->testView()->assertTextIs('Foo');
Expand Down

0 comments on commit cbae85b

Please sign in to comment.