File tree Expand file tree Collapse file tree 5 files changed +5
-8
lines changed
tests/Fixtures/TestBundle/Entity Expand file tree Collapse file tree 5 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,12 @@ Feature: GraphQL DTO input and output
27
27
"bat": "OutputDto/bat",
28
28
"relatedDummies": "OutputDto/relatedDummies"
29
29
},
30
- "@type": "DummyDtoInputOutput",
31
- "@id": "/dummy_dto_input_outputs/1",
30
+ "@type": "OutputDto",
32
31
"id": 1,
33
32
"baz": 1,
34
33
"bat": "test",
35
34
"relatedDummies": [
36
35
{
37
- "@context": "/contexts/RelatedDummy",
38
36
"@id": "/related_dummies/1",
39
37
"@type": "https://schema.org/Product",
40
38
"name": "RelatedDummy with friends",
@@ -150,7 +148,7 @@ Feature: GraphQL DTO input and output
150
148
{
151
149
"errors": [
152
150
{
153
- "message": "Cannot query field \"id\" on type \"DummyDtoNoOutput \".",
151
+ "message": "Cannot query field \"id\" on type \"createDummyDtoNoOutputPayloadData \".",
154
152
"extensions": {
155
153
"category": "graphql"
156
154
},
Original file line number Diff line number Diff line change @@ -565,4 +565,4 @@ Feature: GraphQL introspection support
565
565
And the header "Content-Type" should be equal to "application/json"
566
566
And the JSON node "errors[0].debugMessage" should be equal to 'Type with id "VoDummyInspectionCursorConnection" is not present in the types container'
567
567
And the JSON node "data.typeNotAvailable" should be null
568
- And the JSON node "data.typeOwner.fields[3 ].type.name" should be equal to "VoDummyInspectionCursorConnection"
568
+ And the JSON node "data.typeOwner.fields[1 ].type.name" should be equal to "VoDummyInspectionCursorConnection"
Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ Feature: GraphQL mutation support
400
400
And the header "Content-Type" should be equal to "application/json"
401
401
And the JSON node "data.createFoo.foo.id" should be equal to "/foos/1"
402
402
And the JSON node "data.createFoo.foo._id" should be equal to 1
403
- And the JSON node "data.createFoo.foo.__typename" should be equal to "Foo "
403
+ And the JSON node "data.createFoo.foo.__typename" should be equal to "createFooPayloadData "
404
404
And the JSON node "data.createFoo.foo.name" should be equal to "A new one"
405
405
And the JSON node "data.createFoo.foo.bar" should be equal to "new"
406
406
And the JSON node "data.createFoo.clientMutationId" should be equal to "myId"
Original file line number Diff line number Diff line change @@ -103,7 +103,6 @@ Feature: JSON-LD DTO input and output
103
103
"bar": 1
104
104
}
105
105
"""
106
- Then print last JSON response
107
106
Then the response status code should be 201
108
107
And the JSON should be a superset of:
109
108
"""
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class RelatedDummy extends ParentDummy
53
53
* @var string|null A name
54
54
*/
55
55
#[ORM \Column(nullable: true )]
56
- #[Groups(['friends ' ])]
56
+ #[Groups(['friends ' , ' chicago ' ])]
57
57
public $ name ;
58
58
59
59
#[ORM \Column]
You can’t perform that action at this time.
0 commit comments