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 1e395be commit b58c211Copy full SHA for b58c211
tests/RouteTest.php
@@ -48,4 +48,24 @@ public function test_current_route_for_a_route_with_all_attributes()
48
49
$this->assertEquals(json_encode($expected), $this->output($router));
50
}
51
+
52
+ public function test_lately_added_attributes_of_route()
53
+ {
54
+ $this->mockRequest('POST', 'http://shop.com/admin/profile/666');
55
56
+ $router = $this->router();
57
58
+ $router->post('/admin/profile/{id}', function (Route $route) {
59
+ return [
60
+ $route->getParameters(),
61
+ $route->getUri(),
62
+ ];
63
+ }, 'admin.profile');
64
65
+ $router->dispatch();
66
67
+ $expected = [['id' => '666'], '/admin/profile/666'];
68
69
+ $this->assertEquals(json_encode($expected), $this->output($router));
70
+ }
71
0 commit comments