Fixed 500 error for the resources without default includes
Update patch with minor code styles fixes
For some reason, locally, I have also passed tests by adding a cache tag check: $this->assertSession()->responseHeaderEquals('X-Drupal-Cache', 'HIT') after the second request to '/api/articles'. However, at the same time, when I check it by visiting the JSON API route with the resource with default includes, I always receive an uncached response.
Fixed bug with variable name
@bbrala do you have default includes added when you test it locally?
@bbrala, thank you for the clear explanation. Updating the patch with the corresponding tests. Passed successfully on my local env
It seems that the responses in these tests do not contain headers, just a raw JSON string.
ihor_allin β created an issue.
ihor_allin β created an issue.