Skip to content

Commit 3992255

Browse files
committed
Apply suggestions from code review
1 parent adc137c commit 3992255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Component/spec/Symfony/Routing/Factory/OperationRouteFactorySpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function it_generates_routes_with_vars(
293293
function it_generates_routes_with_requirements(
294294
OperationRoutePathFactoryInterface $routePathFactory,
295295
): void {
296-
$operation = new Index(routeRequirements: ['country', 'province', 'zone']);
296+
$operation = new Index(routeRequirements: ['type' => 'country|province|zone']);
297297

298298
$metadata = Metadata::fromAliasAndConfiguration('app.dummy', ['driver' => 'dummy_driver']);
299299

@@ -305,6 +305,6 @@ function it_generates_routes_with_requirements(
305305
$operation,
306306
);
307307

308-
$route->getRequirements()->shouldReturn(['country', 'province', 'zone']);
308+
$route->getRequirements()->shouldReturn(['type' => 'country|province|zone']);
309309
}
310310
}

0 commit comments

Comments
 (0)