Skip to content

Commit ef578c7

Browse files
committed
Added a new test case for atomicity tests
1 parent fa6cd83 commit ef578c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/JsonPatchCompliance.php

+5
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ public static function atomicOperationsProvider(): array
5959
'[{"op": "remove", "path": "/0"}, {"op": "test", "path": "/a", "value": ""}]',
6060
'["Hello"]',
6161
],
62+
'Atomic Operations, nested array: REMOVE' => [
63+
'["Hello",["hello",["ciao"]]]',
64+
'[{"op": "remove", "path": "/1/1"}, {"op": "test", "path": "/a", "value": ""}]',
65+
'["Hello",["hello",["ciao"]]]',
66+
],
6267
'Atomic operations, mixed' => [
6368
'{"foo":[{"bar":"start"}]}',
6469
'[{"op": "add", "path": "/foo/-", "value": "Hello"},

0 commit comments

Comments
 (0)