public function ItemTest::testRelationships in Drupal 9
Same name and namespace in other branches
- 8 core/modules/jsonapi/tests/src/Functional/ItemTest.php \Drupal\Tests\jsonapi\Functional\ItemTest::testRelationships()
Tests CRUD of individual resource relationship data.
Unlike the "related" routes, relationship routes only return information about the "relationship" itself, not the targeted resources. For JSON:API with Drupal, relationship routes are like looking at an entity reference field without loading the entities. It only reveals the type of the targeted resource and the target resource IDs. These type+ID combos are referred to as "resource identifiers."
Overrides ResourceTestBase::testRelationships
File
- core/
modules/ jsonapi/ tests/ src/ Functional/ ItemTest.php, line 152
Class
- ItemTest
- JSON:API integration test for the "Item" content entity type.
Namespace
Drupal\Tests\jsonapi\FunctionalCode
public function testRelationships() {
$this
->markTestSkipped('Remove this override in https://www.drupal.org/project/drupal/issues/2149851');
}