.../rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index 41d1e15..a7db61c 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -239,7 +239,7 @@ public function testPost() { // DX: 404 when resource not provisioned. $response = $this->request('POST', $url, $request_options); // @todo Open issue to improve this message: it should list '/relative/url?query-string', not just '/relative/url'. - $this->assertResourceErrorResponse(404, 'No route found for "POST ' . $this->getPostUrl()->toString() . '"', $response); + $this->assertResourceErrorResponse(404, 'No route found for "POST ' . str_replace($this->baseUrl, '', $this->getPostUrl()->setAbsolute()->toString()) . '"', $response); $this->provisionEntityResource();