tests/src/Functional/CommentTest.php | 2 +- tests/src/Functional/ResourceTestBase.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/Functional/CommentTest.php b/tests/src/Functional/CommentTest.php index d436da8..7aefaf4 100644 --- a/tests/src/Functional/CommentTest.php +++ b/tests/src/Functional/CommentTest.php @@ -316,7 +316,7 @@ class CommentTest extends ResourceTestBase { $request_options[RequestOptions::BODY] = Json::encode($remove_field($this->getNormalizedPostEntity(), 'attributes', 'field_name')); $response = $this->request('POST', $url, $request_options); // @todo Uncomment, remove next line in https://www.drupal.org/node/2820364. - $this->assertResourceErrorResponse(500, 'Internal Server Error', 'Field is unknown.', $response); + $this->assertResourceErrorResponse(500, 'Field is unknown.', $response); // $this->assertResourceErrorResponse(422, 'Unprocessable Entity', 'field_name: This value should not be null.', $response); } diff --git a/tests/src/Functional/ResourceTestBase.php b/tests/src/Functional/ResourceTestBase.php index 255f34e..0ee4050 100644 --- a/tests/src/Functional/ResourceTestBase.php +++ b/tests/src/Functional/ResourceTestBase.php @@ -752,7 +752,7 @@ abstract class ResourceTestBase extends BrowserTestBase { // - to first test all mistakes a developer might make, and assert that the // error responses provide a good DX // - to eventually result in a well-formed request that succeeds. - $url = Url::fromRoute(sprintf('jsonapi.%s.collection', static::$resourceTypeName), [static::$entityTypeId => $this->entity->uuid()]); + $url = Url::fromRoute(sprintf('jsonapi.%s.collection', static::$resourceTypeName)); $request_options = $this->getAuthenticationRequestOptions('POST'); // @todo Uncomment in https://www.drupal.org/project/jsonapi/issues/2943170. @@ -954,7 +954,7 @@ abstract class ResourceTestBase extends BrowserTestBase { // @todo Remove line below in favor of commented line in https://www.drupal.org/project/jsonapi/issues/2878463. $url = Url::fromRoute(sprintf('jsonapi.%s.individual', static::$resourceTypeName), [static::$entityTypeId => $this->entity->uuid()]); //$url = $this->entity->toUrl('jsonapi'); - $request_options = $this->getAuthenticationRequestOptions('PATCH');; + $request_options = $this->getAuthenticationRequestOptions('PATCH'); // @todo Uncomment in https://www.drupal.org/project/jsonapi/issues/2943170. /*