You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/main/attribute_resource.feature
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,8 @@ Feature: Resource attributes
98
98
When I send a "GET" request to "/photos/1/resize/300/100"
99
99
Then the response status code should be 400
100
100
And the response should be in JSON
101
-
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
101
+
And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8"
102
+
And the header "Link" should contain '<http://www.w3.org/ns/hydra/error>; rel="http://www.w3.org/ns/json-ld#error"'
102
103
And the JSON node "hydra:description" should be equal to 'Unable to generate an IRI for the item of type "ApiPlatform\Tests\Fixtures\TestBundle\Entity\IncompleteUriVariableConfigured"'
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
120
+
And the header "Content-Type" should be equal to "application/problem+json; charset=utf-8"
121
121
And the JSON node "hydra:description" should be equal to 'Could not denormalize object of type "ApiPlatform\Tests\Fixtures\TestBundle\ApiResource\Issue5452\ActivableInterface", no supporting normalizer found.'
0 commit comments