You are here

public function ShortcutTest::testRelationships in JSON:API 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/ShortcutTest.php \Drupal\Tests\jsonapi\Functional\ShortcutTest::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

tests/src/Functional/ShortcutTest.php, line 159

Class

ShortcutTest
JSON:API integration test for the "Shortcut" content entity type.

Namespace

Drupal\Tests\jsonapi\Functional

Code

public function testRelationships() {
  $this
    ->markTestSkipped('Disabled until https://www.drupal.org/project/drupal/issues/2982060 is fixed.');
}