Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As has been discovered during testing of the last couple of patches, the EntityResourceTests are failing with the message that "The URI 'http://:/' is malformed".
Proposed resolution
Fix the test
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
EntityResourceTest fails with malformed URI error.
Comments
Comment #2
logickal CreditAttribution: logickal commentedBorrowing the request creation from the tests in Jsonapi seems to do the trick.
Comment #3
logickal CreditAttribution: logickal commentedComment #5
logickal CreditAttribution: logickal commentedOk, I should obviously not submit patches until I run ALL of the tests. Updated patch to fix the other errors.
Comment #7
logickal CreditAttribution: logickal at The Weather Company commentedPlaying whack-a-mole - Adding one additional patch that includes the fix from #3027768: Argument 3 passed to Drupal\jsonapi\JsonApiResource\JsonApiDocumentTopLevel::__construct() must be an instance of Drupal\jsonapi\JsonApiResource\LinkCollection to validate that all tests will pass when both of these fixes are in place
Comment #8
e0ipsoFixed! Thanks.