Skip to content

Commit fe44f1b

Browse files
committed
[2.2] _method requirement was changed to methods option
1 parent ba05aef commit fe44f1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Functional/Routing/DynamicRouterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testNotAllowed()
141141
// do not set a content here, or we need a valid request and so on...
142142
$route = new Route();
143143
$route->setPosition($root, 'notallowed');
144-
$route->setRequirement('_method', 'GET');
144+
$route->setMethods(array('GET'));
145145
$route->setDefault(RouteObjectInterface::CONTROLLER_NAME, 'testController');
146146
$this->getDm()->persist($route);
147147
$this->getDm()->flush();

0 commit comments

Comments
 (0)