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."
@@ -50,7 +50,7 @@ Feature: Authorization checking
50
50
}
51
51
}
52
52
"""
53
- Then the response status code should be 400
53
+ Then the response status code should be 200
54
54
And the response should be in JSON
55
55
And the header "Content-Type" should be equal to "application/json"
56
56
And the JSON node "errors[0].message" should be equal to "Only admins can create a secured dummy."
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ Feature: GraphQL mutation support
260
260
}
261
261
}
262
262
"""
263
- Then the response status code should be 400
263
+ Then the response status code should be 200
264
264
And the response should be in JSON
265
265
And the header "Content-Type" should be equal to "application/json"
266
266
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