diff --git a/test/Router/AuraRouterTest.php b/test/Router/AuraRouterTest.php index bc77d3fc..93fabecf 100644 --- a/test/Router/AuraRouterTest.php +++ b/test/Router/AuraRouterTest.php @@ -200,4 +200,20 @@ public function testReturns404ResultIfAuraReturnsNullForFailedRoute() $this->assertFalse($result->isMethodFailure()); $this->assertSame([], $result->getAllowedMethods()); } + + /** + * @group 149 + */ + public function testGeneratedUriIsNotEncoded() + { + $router = new AuraRouter(); + $route = new Route('/foo/{id}', 'foo', ['GET'], 'foo'); + + $router->addRoute($route); + + $this->assertEquals( + '/foo/bar is not encoded', + $router->generateUri('foo', ['id' => 'bar is not encoded']) + ); + } }