Skip to content

Commit

Permalink
ask alan
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Jun 25, 2022
1 parent f3388ea commit ca6353c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions features/graphql/input_output.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ Feature: GraphQL DTO input and output
"bat": "OutputDto/bat",
"relatedDummies": "OutputDto/relatedDummies"
},
"@type": "DummyDtoInputOutput",
"@id": "/dummy_dto_input_outputs/1",
"@type": "OutputDto",
"id": 1,
"baz": 1,
"bat": "test",
"relatedDummies": [
{
"@context": "/contexts/RelatedDummy",
"@id": "/related_dummies/1",
"@type": "https://schema.org/Product",
"name": "RelatedDummy with friends",
Expand Down Expand Up @@ -150,7 +148,7 @@ Feature: GraphQL DTO input and output
{
"errors": [
{
"message": "Cannot query field \"id\" on type \"DummyDtoNoOutput\".",
"message": "Cannot query field \"id\" on type \"createDummyDtoNoOutputPayloadData\".",
"extensions": {
"category": "graphql"
},
Expand Down
2 changes: 1 addition & 1 deletion features/graphql/introspection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -565,4 +565,4 @@ Feature: GraphQL introspection support
And the header "Content-Type" should be equal to "application/json"
And the JSON node "errors[0].debugMessage" should be equal to 'Type with id "VoDummyInspectionCursorConnection" is not present in the types container'
And the JSON node "data.typeNotAvailable" should be null
And the JSON node "data.typeOwner.fields[3].type.name" should be equal to "VoDummyInspectionCursorConnection"
And the JSON node "data.typeOwner.fields[1].type.name" should be equal to "VoDummyInspectionCursorConnection"
2 changes: 1 addition & 1 deletion features/graphql/mutation.feature
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ Feature: GraphQL mutation support
And the header "Content-Type" should be equal to "application/json"
And the JSON node "data.createFoo.foo.id" should be equal to "/foos/1"
And the JSON node "data.createFoo.foo._id" should be equal to 1
And the JSON node "data.createFoo.foo.__typename" should be equal to "Foo"
And the JSON node "data.createFoo.foo.__typename" should be equal to "createFooPayloadData"
And the JSON node "data.createFoo.foo.name" should be equal to "A new one"
And the JSON node "data.createFoo.foo.bar" should be equal to "new"
And the JSON node "data.createFoo.clientMutationId" should be equal to "myId"
Expand Down
1 change: 0 additions & 1 deletion features/jsonld/input_output.feature
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ Feature: JSON-LD DTO input and output
"bar": 1
}
"""
Then print last JSON response
Then the response status code should be 201
And the JSON should be a superset of:
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/TestBundle/Entity/RelatedDummy.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class RelatedDummy extends ParentDummy
* @var string|null A name
*/
#[ORM\Column(nullable: true)]
#[Groups(['friends'])]
#[Groups(['friends', 'chicago'])]
public $name;

#[ORM\Column]
Expand Down

0 comments on commit ca6353c

Please sign in to comment.