Skip to content

Commit 3eaa7cb

Browse files
committed
fix Behat
1 parent f0c618a commit 3eaa7cb

8 files changed

Lines changed: 408 additions & 0 deletions

features/doctrine/boolean_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ Feature: Boolean filter on collections
471471
"properties": {
472472
"@id": {"pattern": "^/converted_booleans/(2|4)$"},
473473
"@type": {"pattern": "^ConvertedBoolean"},
474+
"operation": {"type": "array"},
474475
"name_converted": {"type": "boolean"},
475476
"id": {"type": "integer", "minimum":2, "maximum": 4}
476477
},

features/doctrine/date_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ Feature: Date filter on collections
582582
"properties": {
583583
"@id": {"pattern": "^/converted_dates/(29|30)$"},
584584
"@type": {"pattern": "^ConvertedDate"},
585+
"operation": {"type": "array"},
585586
"name_converted": {"type": "string"},
586587
"id": {"type": "integer", "minimum":29, "maximum": 30}
587588
},

features/doctrine/exists_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Feature: Exists filter on collections
169169
"properties": {
170170
"@id": {"pattern": "^/converted_strings/(1|3)$"},
171171
"@type": {"pattern": "^ConvertedString"},
172+
"operation": {"type": "array"},
172173
"name_converted": {"pattern": "^name#(1|3)$"},
173174
"id": {"type": "integer", "minimum":1, "maximum": 3}
174175
},

features/doctrine/issue6175/standard_put_entity_inheritence.feature

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,56 @@ Feature: Update properties of a resource that are inherited with standard PUT op
1818
{
1919
"@context": "/contexts/DummyMappedSubclass",
2020
"@id": "/dummy_mapped_subclasses/1",
21+
"operation": [
22+
{
23+
"@type": [
24+
"hydra:Operation",
25+
"schema:FindAction"
26+
],
27+
"hydra:description": "Retrieves a DummyMappedSubclass resource.",
28+
"hydra:method": "GET",
29+
"hydra:title": "getDummyMappedSubclass",
30+
"returns": "owl:Nothing"
31+
},
32+
{
33+
"@type": [
34+
"hydra:Operation",
35+
"schema:ReplaceAction"
36+
],
37+
"expects": "DummyMappedSubclass",
38+
"hydra:description": "Replaces the DummyMappedSubclass resource.",
39+
"hydra:method": "PUT",
40+
"hydra:title": "putDummyMappedSubclass",
41+
"returns": "DummyMappedSubclass"
42+
},
43+
{
44+
"@type": "hydra:Operation",
45+
"hydra:method": "PATCH",
46+
"hydra:title": "patchDummyMappedSubclass",
47+
"hydra:description": "Updates the DummyMappedSubclass resource.",
48+
"expects": "DummyMappedSubclass",
49+
"expectsHeader": [
50+
{
51+
"headerName": "Content-Type",
52+
"possibleValue": [
53+
"application/merge-patch+json",
54+
"application/vnd.api+json"
55+
]
56+
}
57+
],
58+
"returns": "DummyMappedSubclass"
59+
},
60+
{
61+
"@type": [
62+
"hydra:Operation",
63+
"schema:DeleteAction"
64+
],
65+
"hydra:description": "Deletes the DummyMappedSubclass resource.",
66+
"hydra:method": "DELETE",
67+
"hydra:title": "deleteDummyMappedSubclass",
68+
"returns": "owl:Nothing"
69+
}
70+
],
2171
"@type": "DummyMappedSubclass",
2272
"id": 1,
2373
"foo": "updated value"

features/doctrine/numeric_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ Feature: Numeric filter on collections
159159
"properties": {
160160
"@id": {"pattern": "^/converted_integers/(2|3)$"},
161161
"@type": {"pattern": "^ConvertedInteger$"},
162+
"operation": {"type": "array"},
162163
"name_converted": {"type": "integer"},
163164
"id": {"type": "integer", "minimum":2, "maximum": 3}
164165
},

features/doctrine/order_filter.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ Feature: Order filter on collections
733733
"properties": {
734734
"@id": {"pattern": "^/converted_integers/3$"},
735735
"@type": {"pattern": "^ConvertedInteger$"},
736+
"operation": {"type": "array"},
736737
"name_converted": {"type": "integer"},
737738
"id": {"type": "integer", "minimum":3, "maximum": 3}
738739
},
@@ -744,6 +745,7 @@ Feature: Order filter on collections
744745
"properties": {
745746
"@id": {"pattern": "^/converted_integers/2$"},
746747
"@type": {"pattern": "^ConvertedInteger$"},
748+
"operation": {"type": "array"},
747749
"name_converted": {"type": "integer"},
748750
"id": {"type": "integer", "minimum":2, "maximum": 2}
749751
},
@@ -755,6 +757,7 @@ Feature: Order filter on collections
755757
"properties": {
756758
"@id": {"pattern": "^/converted_integers/1$"},
757759
"@type": {"pattern": "^ConvertedInteger$"},
760+
"operation": {"type": "array"},
758761
"name_converted": {"type": "integer"},
759762
"id": {"type": "integer", "minimum":1, "maximum": 1}
760763
},

features/doctrine/range_filter.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ Feature: Range filter on collections
447447
"properties": {
448448
"@id": {"pattern": "^/converted_integers/(1|2)$"},
449449
"@type": {"pattern": "^ConvertedInteger$"},
450+
"operation": {"type": "array"},
450451
"name_converted": {"type": "integer"},
451452
"id": {"type": "integer", "minimum":1, "maximum": 2}
452453
},

0 commit comments

Comments
 (0)