File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Feature: Authorization checking
15
15
}
16
16
}
17
17
"""
18
- Then the response status code should be 400
18
+ Then the response status code should be 200
19
19
And the response should be in JSON
20
20
And the header "Content-Type" should be equal to "application/json"
21
21
And the JSON node "errors[0].message" should be equal to "Access Denied."
@@ -35,7 +35,7 @@ Feature: Authorization checking
35
35
}
36
36
}
37
37
"""
38
- Then the response status code should be 400
38
+ Then the response status code should be 200
39
39
And the response should be in JSON
40
40
And the header "Content-Type" should be equal to "application/json"
41
41
And the JSON node "errors[0].message" should be equal to "Access Denied."
@@ -51,7 +51,7 @@ Feature: Authorization checking
51
51
}
52
52
}
53
53
"""
54
- Then the response status code should be 400
54
+ Then the response status code should be 200
55
55
And the response should be in JSON
56
56
And the header "Content-Type" should be equal to "application/json"
57
57
And the JSON node "errors[0].message" should be equal to "Access Denied."
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ Feature: GraphQL mutation support
252
252
}
253
253
}
254
254
"""
255
- Then the response status code should be 400
255
+ Then the response status code should be 200
256
256
And the response should be in JSON
257
257
And the header "Content-Type" should be equal to "application/json"
258
258
And the JSON node "errors[0].message" should be equal to "name: This value should not be blank."
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function __invoke(Request $request): Response
67
67
$ executionResult = new ExecutionResult (null , [$ e ]);
68
68
}
69
69
70
- return new JsonResponse ($ executionResult ->toArray ($ this ->debug ), $ executionResult -> errors ? Response:: HTTP_BAD_REQUEST : Response:: HTTP_OK );
70
+ return new JsonResponse ($ executionResult ->toArray ($ this ->debug ));
71
71
}
72
72
73
73
private function parseRequest (Request $ request ): array
You can’t perform that action at this time.
0 commit comments