Skip to content

Commit 016a047

Browse files
committed
Add missing test
1 parent be56398 commit 016a047

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/framework/tests/Feature/RouteTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,11 @@ public function test_get_link_returns_pretty_url_if_enabled()
166166
$this->assertEquals(Hyde::relativeLink($route->getOutputFilePath()), $route->getLink());
167167
$this->assertEquals('foo', $route->getLink());
168168
}
169+
170+
// test to string is alias for getLink
171+
public function test_to_string_is_alias_for_get_link()
172+
{
173+
$route = new Route(new MarkdownPage(slug: 'foo'));
174+
$this->assertEquals($route->getLink(), (string) $route);
175+
}
169176
}

0 commit comments

Comments
 (0)