only in patch2: unchanged: --- a/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php +++ b/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php @@ -295,6 +295,8 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase { * @covers ::normalize */ public function testNormalizeRelated() { + $this->markTestIncomplete('This fails and should be fixed by https://www.drupal.org/project/jsonapi/issues/2922121'); + list($request, $resource_type) = $this->generateProphecies('node', 'article', 'uid'); $request->query = new ParameterBag([ 'fields' => [ @@ -690,7 +692,7 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase { protected function generateProphecies($entity_type_id, $bundle, $related_property = NULL) { $path = sprintf('/%s/%s', $entity_type_id, $bundle); $path = $related_property ? - sprintf('%s/%s', $path, $related_property) : + sprintf('%s/1/%s', $path, $related_property) : $path; $route = new Route($path, [