diff options
Diffstat (limited to 'tests/lib/AppFramework/Routing/RouteParserTest.php')
-rw-r--r-- | tests/lib/AppFramework/Routing/RouteParserTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Routing/RouteParserTest.php b/tests/lib/AppFramework/Routing/RouteParserTest.php index ddfe0594ab2..406c5f1f3a5 100644 --- a/tests/lib/AppFramework/Routing/RouteParserTest.php +++ b/tests/lib/AppFramework/Routing/RouteParserTest.php @@ -142,6 +142,15 @@ class RouteParserTest extends \Test\TestCase { $this->parser->parseDefaultRoutes($routes, 'app1'); } + public function testParseRoutesInvalidName2(): void { + $routes = ['routes' => [ + ['name' => 'folders#open#action', 'url' => '/{folderId}/open', 'verb' => 'GET'] + ]]; + + $this->expectException(\UnexpectedValueException::class); + $this->parser->parseDefaultRoutes($routes, 'app1'); + } + public function testParseRoutesEmpty(): void { $routes = ['routes' => []]; |