Skip to content

Commit 2d384c9

Browse files
committed
IBX-8175: Update route definition and functional test
1 parent ad9794e commit 2d384c9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/bundle/Resources/config/routing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,8 @@ ibexa.rest.user_group.move:
953953
controller: Ibexa\Rest\Server\Controller\User::moveGroup
954954
condition: 'ibexa_get_media_type(request) === "MoveUserGroupInput"'
955955
methods: [POST]
956+
options:
957+
options_route_suffix: '_MoveUserGroupInput'
956958
requirements:
957959
groupPath: "[0-9/]+"
958960

tests/bundle/Functional/HttpOptionsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public function providerForTestHttpOptions(): array
117117
['/user/groups/root', ['GET']],
118118
['/user/groups/subgroups', ['POST']],
119119
['/user/groups/4', ['GET', 'PATCH', 'DELETE', 'MOVE']],
120+
['/user/groups/4', ['POST'], 'MoveUserGroupInput+json'],
120121
['/user/groups/4/subgroups', ['GET', 'POST']],
121122
['/user/groups/4/users', ['GET', 'POST']],
122123
['/user/groups/4/roles', ['GET', 'POST']],

0 commit comments

Comments
 (0)