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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

logickal created an issue. See original summary.

logickal’s picture

Borrowing the request creation from the tests in Jsonapi seems to do the trick.

logickal’s picture

Status: Active » Needs review

Status: Needs review » Needs work
logickal’s picture

Ok, I should obviously not submit patches until I run ALL of the tests. Updated patch to fix the other errors.

Status: Needs review » Needs work
logickal’s picture

Playing 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

e0ipso’s picture

Status: Needs review » Fixed

Fixed! Thanks.

  • e0ipso committed bbe6b15 on 8.x-3.x authored by logickal
    Issue #3029890 by logickal, e0ipso: EntityResourceTest failing - The URI...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.