We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
spark routes
1 parent 19d5755 commit 6107a60Copy full SHA for 6107a60
1 file changed
tests/system/Commands/RoutesTest.php
@@ -240,4 +240,18 @@ public function testRoutesCommandRouteLegacy(): void
240
EOL;
241
$this->assertStringContainsString($expected, $this->getBuffer());
242
}
243
+
244
+ public function testRoutesCommandRouteWithRegexp(): void
245
+ {
246
+ $routes = Services::routes();
247
+ $routes->resetRoutes();
248
+ $routes->options('picker/(.+)', 'Options::index');
249
250
+ command('routes');
251
252
+ $expected = <<<'EOL'
253
+ | OPTIONS | picker/(.+) | » | \App\Controllers\Options::index | <unknown> | <unknown> |
254
+ EOL;
255
+ $this->assertStringContainsString($expected, $this->getBuffer());
256
+ }
257
0 commit comments