Skip to content

Commit 77b9b06

Browse files
committed
IBX-8172: Update functional tests
1 parent dd3de8e commit 77b9b06

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

src/bundle/Resources/config/routing.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ ibexa.rest.location.copy:
408408
controller: Ibexa\Rest\Server\Controller\Location::copy
409409
condition: 'ibexa_get_media_type(request) === "CopyLocationInput"'
410410
methods: [POST]
411+
options:
412+
options_route_suffix: '_CopyLocationInput'
411413
requirements:
412414
locationPath: "[0-9/]+"
413415

tests/bundle/Functional/HttpOptionsTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public function providerForTestHttpOptions(): array
7777
['/content/objectstategroups/1/objectstates/1', ['GET', 'PATCH', 'DELETE']],
7878
['/content/objects/1/objectstates', ['GET', 'PATCH']],
7979
['/content/locations', ['GET']],
80+
['/content/locations/1/2', ['POST'], 'CopyLocationInput+json'],
8081
['/content/locations/1/2', ['POST'], 'MoveLocationInput+json'],
8182
['/content/locations/1/2', ['POST'], 'SwapLocationInput+json'],
8283
['/content/locations/1/2', ['GET', 'PATCH', 'DELETE', 'COPY', 'MOVE', 'SWAP']],

tests/bundle/Functional/SearchView/Criterion/IsContainerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function getCriteriaPayloads(): iterable
2828
'is container' => [
2929
'json',
3030
$this->buildJsonCriterionQuery('"IsContainerCriterion": true'),
31-
12,
31+
13,
3232
],
3333
'is not container' => [
3434
'json',

tests/bundle/Functional/SearchView/Criterion/IsUserBasedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function getCriteriaPayloads(): iterable
2323
'is not user based' => [
2424
'json',
2525
$this->buildJsonCriterionQuery('"IsUserBasedCriterion": false'),
26-
12,
26+
13,
2727
],
2828
];
2929
}

tests/bundle/Functional/SearchView/Criterion/ObjectStateIdentifierTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ public function getCriteriaPayloads(): iterable
1818
'identifier with target group' => [
1919
'json',
2020
$this->buildJsonCriterionQuery('"ObjectStateIdentifierCriterion": {"value": "not_locked", "target": "ez_lock"}'),
21-
14,
21+
15,
2222
],
2323
'identifier without target group' => [
2424
'json',
2525
$this->buildJsonCriterionQuery('"ObjectStateIdentifierCriterion": {"value": "not_locked", "target": null}'),
26-
14,
26+
15,
2727
],
2828
];
2929
}

tests/bundle/Functional/SearchView/Criterion/SectionIdentifierTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public function getCriteriaPayloads(): iterable
2424
'multiple Sections' => [
2525
'json',
2626
$this->buildJsonCriterionQuery('"SectionIdentifierCriterion": "users,standard"'),
27-
// 2 users + 5 groups + 1 Home Folder
28-
8,
27+
// 2 users + 6 groups + 1 Home Folder
28+
9,
2929
],
3030
];
3131
}

0 commit comments

Comments
 (0)