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 ba05aef commit fe44f1bCopy full SHA for fe44f1b
Tests/Functional/Routing/DynamicRouterTest.php
@@ -141,7 +141,7 @@ public function testNotAllowed()
141
// do not set a content here, or we need a valid request and so on...
142
$route = new Route();
143
$route->setPosition($root, 'notallowed');
144
- $route->setRequirement('_method', 'GET');
+ $route->setMethods(array('GET'));
145
$route->setDefault(RouteObjectInterface::CONTROLLER_NAME, 'testController');
146
$this->getDm()->persist($route);
147
$this->getDm()->flush();
0 commit comments