We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 702d326 commit 4142b50Copy full SHA for 4142b50
tests/system/Router/RouteCollectionTest.php
@@ -1105,6 +1105,22 @@ public function testNamedRoutesWithPipesInRegex(): void
1105
$this->assertSame('/system/that', $routes->reverseRoute('pipedRoute', 'that'));
1106
}
1107
1108
+ public function testNamedRouteAsPath(): void
1109
+ {
1110
+ service('request')->setMethod(Method::GET);
1111
+ $routes = $this->getCollector();
1112
+
1113
+ $expected = [
1114
+ 'here' => '\there',
1115
+ 'from' => '\to',
1116
+ ];
1117
1118
+ $routes->get('here', 'there');
1119
+ $routes->get('from', 'to', ['as' => 'here']);
1120
1121
+ $this->assertSame($expected, $routes->getRoutes());
1122
+ }
1123
1124
public function testAddRedirect(): void
1125
{
1126
$routes = $this->getCollector();
0 commit comments