function ItemTest::testRelated

Same name and namespace in other branches
  1. 8.9.x core/modules/jsonapi/tests/src/Functional/ItemTest.php \Drupal\Tests\jsonapi\Functional\ItemTest::testRelated()

Tests GET of the related resource of an individual resource.

Expected responses are built by making requests to 'relationship' routes. Using the fetched resource identifiers, if any, all targeted resources are fetched individually. These individual responses are then 'merged' into a single expected ResourceResponse. This is repeated for every relationship field of the resource type under test.

Overrides ResourceTestBase::testRelated

File

core/modules/aggregator/tests/src/Functional/Jsonapi/ItemTest.php, line 147

Class

ItemTest
JSON:API integration test for the "Item" content entity type.

Namespace

Drupal\Tests\aggregator\Functional\Jsonapi

Code

public function testRelated() {
    $this->markTestSkipped('Remove this override in https://www.drupal.org/project/drupal/issues/2149851');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.