We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be56398 commit 016a047Copy full SHA for 016a047
packages/framework/tests/Feature/RouteTest.php
@@ -166,4 +166,11 @@ public function test_get_link_returns_pretty_url_if_enabled()
166
$this->assertEquals(Hyde::relativeLink($route->getOutputFilePath()), $route->getLink());
167
$this->assertEquals('foo', $route->getLink());
168
}
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
+ }
176
0 commit comments